Skip to content

Commit

Permalink
Merge pull request #103 from JuliaKukulies/v2.0-dev
Browse files Browse the repository at this point in the history
bug fix: added missing 'raise' in get_spacing to actually raise ValueError
  • Loading branch information
freemansw1 committed Apr 6, 2022
2 parents b73d848 + 42c14f8 commit dddb721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tobac/utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def get_spacings(field_in, grid_spacing=None, time_spacing=None):
km = 6371 * c
dxy = np.round(km * 1000)
else:
ValueError(
raise ValueError(
"no information about grid spacing, need either input cube with projection_x_coord and projection_y_coord, latitude and longitude or keyword argument grid_spacing"
)

Expand Down

0 comments on commit dddb721

Please sign in to comment.