Skip to content

Commit 7a3b9e9

Browse files
committed
DAS-2326 Update geographic-grid function to capture all failed dimensions
1 parent 52a53e9 commit 7a3b9e9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

hoss/spatial.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ def get_spatial_index_ranges(
111111
if bounding_box is None and shape_file_path is not None:
112112
geojson_content = get_shape_file_geojson(shape_file_path)
113113
bounding_box = get_geographic_bbox(geojson_content)
114-
try:
115-
for dimension in geographic_dimensions:
114+
115+
for dimension in geographic_dimensions:
116+
try:
116117
index_ranges[dimension] = get_geographic_index_range(
117118
dimension, varinfo, dimensions_file, bounding_box
118119
)
119-
120-
except InvalidRequestedRange:
121-
out_of_range_variables.add(dimension)
120+
except InvalidRequestedRange:
121+
out_of_range_variables.add(dimension)
122122

123123
if projected_dimensions:
124124
for non_spatial_variable in non_spatial_variables:

0 commit comments

Comments
 (0)