Skip to content

Commit

Permalink
Update rio_reader.py
Browse files Browse the repository at this point in the history
Mute potential errors due to unexpected shapes
  • Loading branch information
fkroeber authored Apr 24, 2024
1 parent 95fa740 commit ca2ad4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stackstac/rio_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ def read(self, window: Window, **kwargs) -> np.ndarray:
elif result.shape[0] == 1:
result = result[0]
else:
raise RuntimeError(f"Unexpected shape {result.shape}, expected exactly 1 band.")
pass
#raise RuntimeError(f"Unexpected shape {result.shape}, expected exactly 1 band.")

scale, offset = self.scale_offset

Expand Down

1 comment on commit ca2ad4f

@fkroeber
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change relates to the following issue

Please sign in to comment.