-
Notifications
You must be signed in to change notification settings - Fork 15
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
Crash when attempting to plot a variable whose min and max are equal #2
Comments
Thank you reporting this bug, I corrected by adding/substracting a constant value to color map bounds. |
Thanks for the quick fix. However, it does not work in all cases. When min and max are equal, but some random float value, the following works better (line 1139 in workflow\util.py): |
I tried to improved the correction when min and max are equal by using a relative value. |
Thanks, that works. |
When attempting to plot a variable (vertical cross section) whose min and max values are equal (e.g. both 0), PyTelTools crashes. Here is the traceback:
I was able to work around this by adding some code to artificially increase the max value in replot(), but I'm sure there is a more elegant way of handling this.
The text was updated successfully, but these errors were encountered: