Skip to content

Commit

Permalink
Merge pull request #6 from openghg/all_nan
Browse files Browse the repository at this point in the history
Changed behaviour when Series/DataArray is all NaN
  • Loading branch information
mrghg authored Apr 19, 2024
2 parents c3c996e + 166d511 commit edd3315
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 edd3315

Please sign in to comment.