Skip to content

Commit

Permalink
ENH: replace NaNs with 0s
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgav committed Jun 8, 2024
1 parent c93f542 commit 7ed9347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyxrf/model/load_data_from_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -3625,7 +3625,7 @@ def download_dataset(dset, data):
ns, ne = n * n_rows_batch, min((n + 1) * n_rows_batch, n_rows)
for retry in range(n_tiled_download_retries):
try:
dset[ns:ne, ...] = np.array(data[ns:ne, ...])
dset[ns:ne, ...] = np.nan_to_num(np.array(data[ns:ne, ...]))
break
except Exception as ex:
logger.error(f"Failed to load the batch: {ex}")
Expand Down

0 comments on commit 7ed9347

Please sign in to comment.