Skip to content

Commit

Permalink
Added a print statement (to be a future log) when changes values of r…
Browse files Browse the repository at this point in the history
…un_xrds as this is not normally expected.
  • Loading branch information
kkappler committed Sep 15, 2023
1 parent 6dd5f51 commit 1f9af7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aurora/pipelines/time_series_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def nan_to_mean(xrds):
"""
for ch in xrds.keys():
if not (xrds[ch].isnull() == False).all().data:
print("Null values detected in xrds -- this is not expected and should be examined")
value = np.nan_to_num(np.nanmean(xrds[ch].data))
xrds[ch] = xrds[ch].fillna(value)

Check warning on line 232 in aurora/pipelines/time_series_helpers.py

View check run for this annotation

Codecov / codecov/patch

aurora/pipelines/time_series_helpers.py#L230-L232

Added lines #L230 - L232 were not covered by tests
return xrds
Expand Down

0 comments on commit 1f9af7c

Please sign in to comment.