Skip to content

Commit

Permalink
Changed behaviour so that Series/DataArray that is all NaN is returne…
Browse files Browse the repository at this point in the history
…d, instead of raising an error
  • Loading branch information
mrghg committed Apr 19, 2024
1 parent 0c57cca commit 166d511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openghg_calscales/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def convert(c, species, scale_original, scale_new):

# Check that c is not all NaNs
if np.isnan(c).all():
raise ValueError("c is all NaNs.")
return c

# Construct graph
G = _scale_graph(species.lower())
Expand Down

0 comments on commit 166d511

Please sign in to comment.