Skip to content

Commit

Permalink
Pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt committed Jan 23, 2024
1 parent 096377d commit fe0f449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions odc/geo/_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@ def explore(
# Add to map and raise a friendly error if data has unsuitable dims
try:
xx.odc.add_to(map, **kwargs)
except ValueError:
except ValueError as e:
raise ValueError(
"Only 2D single-band (x, y) or 3D multi-band (x, y, band) "
"arrays are supported by `.explore()`. Please reduce the "
"dimensions in your array, for example by using `.isel()` "
"or `.sel()`: `da.isel(time=0).odc.explore()`."
)
) from e

# Zoom map to extent of data
map.fit_bounds(xx.odc.map_bounds())
Expand Down

0 comments on commit fe0f449

Please sign in to comment.