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

Commit f83a1cd

Browse files
debug
1 parent 9560c12 commit f83a1cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocf_datapipes/training/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,11 +470,11 @@ def fill_nans_in_arrays(
470470
Operation is performed in-place on the batch.
471471
"""
472472
for k, v in batch.items():
473+
logger.info(k)
473474
if isinstance(v, np.ndarray) and np.issubdtype(v.dtype, np.number):
474475
if np.isnan(v).any():
475-
logger.info(k)
476476
_filled_keys.update({f"{_key_prefix}{k}"})
477-
logger.info('filling nans')
477+
logger.info(f'filling nans in {k}')
478478
batch[k] = np.nan_to_num(v, copy=True, nan=0.0)
479479

480480
# Recursion is included to reach NWP arrays in subdict

0 commit comments

Comments
 (0)