-
Notifications
You must be signed in to change notification settings - Fork 38
[929][evalution/io] Make lead time available to evaluation via OutputDataset #1087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
[929][evalution/io] Make lead time available to evaluation via OutputDataset #1087
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return list(example_stream.group_keys()) | ||
|
||
@functools.cached_property | ||
def lead_times(self) -> list[int]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you using it? I don't see a place where you would need it.
Also, let's not used cached_property unless it is vital to do so. Most people will be confused.
|
Yes, no problem for the backward compatibility. If we have the checkpoints we can always re-run inference so I'd not worry about it. |
return DataCoordinates(times, coords, geoinfo, channels, geoinfo_channels) | ||
|
||
def _extract_sources(self, sample, stream_idx, key, lead_time): | ||
def _extract_sources(self, sample, stream_idx, key, lead_time: int): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add types for all args.
Description
Store lead time as a attribute of the zarr group corresponding to one
OuputDataset
. When convertingOutputDataset
to xarray, lead time is available as a coordinate over the axis"forecast_step"
.Issue Number
closes #929
Is this PR a draft? Mark it as draft.
Checklist before asking for review
./scripts/actions.sh lint
./scripts/actions.sh unit-test
./scripts/actions.sh integration-test
launch-slurm.py --time 60