Skip to content

Commit

Permalink
change compression check
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestfwilliams committed Apr 19, 2024
1 parent 0622913 commit e41d50a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/burst2safe/measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def get_burst_byte_offsets(self):
if len(tif.pages) != 1:
raise ValueError('Byte offset calculation only valid for GeoTIFFs with one band.')
page = tif.pages[0]

if str(page.compression) != 'COMPRESSION.NONE':
if page.compression._name_ != 'NONE':
raise ValueError('Byte offset calculation only valid for uncompressed GeoTIFFs.')

if page.chunks != (1, page.imagewidth):
Expand Down

0 comments on commit e41d50a

Please sign in to comment.