-
Notifications
You must be signed in to change notification settings - Fork 5
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
Handle CubeLists in plot_vertical_line_series
and plot_scatter_plot
#1100
Handle CubeLists in plot_vertical_line_series
and plot_scatter_plot
#1100
Conversation
In order to get the plot operator working with lfric data I had to change the recipe for plotting on mlevels. this rquired changing the coordinate set to full_levels |
Due to rebasing main and then merging in those changes into my branch there are a lot of changes to review. the main change is in def _plot_and_save_vertical_line_series( |
Updating branch as this might help. |
used GitHub Copilot to include cubelists in zip function |
plot_vertical_line_series
and plot_scatter_plot
b31db24
to
efd89db
Compare
I've done a fairly harsh rebase to remove the changes from other PRs. Its probably worth checking I haven't lost anything from it. |
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.
Looks sensible. Some minor comments, but happy to re-review after they are fixed.
src/CSET/recipes/generic_mlevel_domain_mean_vertical_profile_series.yaml
Outdated
Show resolved
Hide resolved
@jfrost-mo addressed your comments and over to you for hopefully final check. |
the change to next(iter_maybe(cubes)).name() causes an error. If it is not a cube then next does not work |
Ah, that was my fault. It should have been I'll fix it while I do my review. |
…ists even if they are just a Cube.
Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
…ressing minor comments
This prevents unexpectedly losing data when the operator is used improperly.
7708b8c
to
e47f9f8
Compare
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.
Looking good. I did do one other change, where I made the zip
inside the scatter plot strict, as this ensures the x and y cubes have the same length.
Contribution checklist
Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.