Skip to content
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

Watermark overlay showing min/max/mean can error #850

Open
jwarner8 opened this issue Oct 2, 2024 · 0 comments
Open

Watermark overlay showing min/max/mean can error #850

jwarner8 opened this issue Oct 2, 2024 · 0 comments
Labels
bug Something isn't working small Small issue that should be quick to resolve

Comments

@jwarner8
Copy link
Contributor

jwarner8 commented Oct 2, 2024

Describe the bug

CSET/operators/plot.py", line 254, in _plot_and_save_contour_plot
+ str(round(np.min(cube.data), 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: type MaskedConstant doesn't define round method

A fix is simply to change round to np.round which can handle masked arrays.

@jwarner8 jwarner8 added bug Something isn't working small Small issue that should be quick to resolve labels Oct 2, 2024
@jwarner8 jwarner8 changed the title Watermark overlay showing min/max/mean can simet Watermark overlay showing min/max/mean can error Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working small Small issue that should be quick to resolve
Projects
None yet
Development

No branches or pull requests

1 participant