Skip to content

Commit

Permalink
Merge pull request #62 from iamtekson/dev
Browse files Browse the repository at this point in the history
save_tile dtype issue fix
  • Loading branch information
iamtekson authored Dec 7, 2023
2 parents feb20ee + bb148d2 commit 8680564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geotile/GeoTile.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def save_tiles(
meta.update({"dtype": dtype or self.get_dtype(self.tile_data)})

# solve nodata related issue #56
if (np.isnan(meta['nodata']) & meta['dtype'] in _int_dtypes):
if ((np.isnan(meta['nodata'])) and (meta['dtype'] in _int_dtypes)):
meta.update({'nodata': None})

# iterate through the offsets and windows_data and save the tiles
Expand Down

0 comments on commit 8680564

Please sign in to comment.