Skip to content

Commit

Permalink
Try unstructured grib on ValueError (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr authored Dec 9, 2024
1 parent b00a547 commit 6c68256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/earthkit/plots/components/subplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def _extract_plottables(
mappable = getattr(style, method_name)(
self.ax, x_values, y_values, z_values, **kwargs
)
except TypeError as err:
except (TypeError, ValueError) as err:
if not grids.is_structured(x_values, y_values):
x_values, y_values, z_values = grids.interpolate_unstructured(
x_values,
Expand Down

0 comments on commit 6c68256

Please sign in to comment.