From 1f9af7c0913ca5dec60989ab793fd8bf8905033d Mon Sep 17 00:00:00 2001 From: "Karl N. Kappler" Date: Fri, 15 Sep 2023 15:42:31 -0700 Subject: [PATCH] Added a print statement (to be a future log) when changes values of run_xrds as this is not normally expected. --- aurora/pipelines/time_series_helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aurora/pipelines/time_series_helpers.py b/aurora/pipelines/time_series_helpers.py index 1205db4b..b4199a94 100644 --- a/aurora/pipelines/time_series_helpers.py +++ b/aurora/pipelines/time_series_helpers.py @@ -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) return xrds