Skip to content

Commit

Permalink
save the fixed prediction files too
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Dec 14, 2023
1 parent 708ce08 commit a08c581
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/check_preds.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def check(pred_ds):
unit=" files",
) as pbar:
for fpath in fpaths:
pred_ds = xr.open_dataset(fpath)
pred_ds = xr.load_dataset(fpath)
# import pdb; pdb.set_trace()
pred_ds = fix(pred_ds)
errors = check(pred_ds)
Expand All @@ -83,4 +83,6 @@ def check(pred_ds):
print(f"Errors in {fpath}:")
for e in errors:
print(e)
else:
pred_ds.to_netcdf(fpath)
pbar.update(1)

0 comments on commit a08c581

Please sign in to comment.