Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit b1059ce

Browse files
commented out old code
1 parent 37aeb6e commit b1059ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocf_datapipes/training/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def fill_nans_in_arrays(
473473
if isinstance(v, np.ndarray) and np.issubdtype(v.dtype, np.number):
474474
if np.isnan(v).any():
475475
_filled_keys.update({f"{_key_prefix}{k}"})
476-
batch[k] = np.nan_to_num(v, copy=True, nan=0.0)
476+
# batch[k] = np.nan_to_num(v, copy=True, nan=0.0)
477477
np.nan_to_num(v, copy=False, nan=0.0)
478478

479479
# Recursion is included to reach NWP arrays in subdict

0 commit comments

Comments
 (0)