From b1059ce7445dede68a8025884ac8007140d54b40 Mon Sep 17 00:00:00 2001 From: Chris Briggs Date: Wed, 28 Feb 2024 13:33:20 +0000 Subject: [PATCH] commented out old code --- ocf_datapipes/training/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocf_datapipes/training/common.py b/ocf_datapipes/training/common.py index e7335753d..26bd7953f 100644 --- a/ocf_datapipes/training/common.py +++ b/ocf_datapipes/training/common.py @@ -473,7 +473,7 @@ def fill_nans_in_arrays( if isinstance(v, np.ndarray) and np.issubdtype(v.dtype, np.number): if np.isnan(v).any(): _filled_keys.update({f"{_key_prefix}{k}"}) - batch[k] = np.nan_to_num(v, copy=True, nan=0.0) + # batch[k] = np.nan_to_num(v, copy=True, nan=0.0) np.nan_to_num(v, copy=False, nan=0.0) # Recursion is included to reach NWP arrays in subdict