Side by side animations#155
Conversation
Co-authored-by: Francesco Zanetta <62377868+frazane@users.noreply.github.com> Co-authored-by: Michele Cattaneo <44707621+MicheleCattaneo@users.noreply.github.com> Co-authored-by: Hugues de Laroussilhe <hugues.delaroussilhe@meteoswiss.ch>
…d (as in baseline)
Co-authored-by: Daniele Nerini <daniele.nerini@meteoswiss.ch>
Co-authored-by: Daniele Nerini <daniele.nerini@meteoswiss.ch>
frazane
left a comment
There was a problem hiding this comment.
Minor details. Looks very nice! Would you mind documenting somewhere your approach for wildcard constraints?
| } | ||
| tot_prec_string = "TOT_PREC_6H" if min(np.diff(steps)) == 6 else "TOT_PREC_1H" | ||
| _diffs = np.diff(steps) | ||
| tot_prec_string = "TOT_PREC_6H" if len(_diffs) > 0 and min(_diffs) == 6 else "TOT_PREC_1H" |
There was a problem hiding this comment.
Could we add a comment explaining why we have to do this?
There was a problem hiding this comment.
Nice addition! I would add some tests for this since it can easily run in the GitHub CI.
| return state | ||
|
|
||
|
|
||
| def load_state_from_zarr( |
There was a problem hiding this comment.
Would it make sense to wait for #153 and read from GRIB files directly?
There was a problem hiding this comment.
Yes, I thought so, but unfortunately the truth seems to stay in zarr, so I am assuming we need it still to be able to plot the truth?
| """ | ||
|
|
||
|
|
||
| rule make_zarr_animation: |
There was a problem hiding this comment.
Rule name should start with module name, see https://github.com/MeteoSwiss/evalml#workflow-development-guidelines
| return [f"{i:03}" for i in range(start, total + 1, step)] | ||
|
|
||
|
|
||
| rule plot_zarr_frame: |
| """ | ||
|
|
||
|
|
||
| rule make_comparison_animation: |
There was a problem hiding this comment.
Rule name does not follow guidelines, logging is missing.
Allows to generate side by side animations.
The animations config (based on #144 ) allows to set the animation speed and the two panesl of the comparison (refering by label)
This PR implements the following functionality:
This PR implements the following config syntax:
TO BE MERGED AFTER #144