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

Clarify ValueError for plot_profile() #78

Open
ewquon opened this issue Feb 17, 2020 · 0 comments
Open

Clarify ValueError for plot_profile() #78

ewquon opened this issue Feb 17, 2020 · 0 comments

Comments

@ewquon
Copy link
Contributor

ewquon commented Feb 17, 2020

Calling plot_profile() with specified times=..., for which any of the specified times does not exist throws a cryptic message:

ValueError: x and y must have same first dimension, but have shapes (0, 200) and (200,)

where 200 is the number of height levels. This backtraces to https://github.com/a2e-mmc/mmctools/blob/master/plotting.py#L819.

This should instead say something along the lines of "The requested time does not exist in the dataset" and then skip that particular profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant