Skip to content

Commit

Permalink
commented out old code
Browse files Browse the repository at this point in the history
  • Loading branch information
confusedmatrix committed Feb 28, 2024
1 parent 37aeb6e commit b1059ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocf_datapipes/training/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1059ce

Please sign in to comment.