Skip to content

Commit

Permalink
update predict to ensure it has the correct attributes on pred_pr
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Dec 14, 2023
1 parent f48d2b5 commit a32414d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def np_samples_to_xr(np_samples, target_transform, coords, cf_data_vars):
xr.Dataset(data_vars=data_vars, coords=coords, attrs={})
)
samples_ds = samples_ds.rename({"target_pr": "pred_pr"})
samples_ds["pred_pr"] = samples_ds["pred_pr"].assign_attrs(pred_pr_attrs)
return samples_ds


Expand Down

0 comments on commit a32414d

Please sign in to comment.