You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If MHKiT happens to be installed in an environment with a version of Matplotlib what contains non-integer characters (e.g., version 3.9.1.post1), then MHKiT will crash on import because it tries to parse the version number by splitting it apart at the decimal places, then casting each part to an int. That leads to ValueError: invalid literal for int() with base 10: 'post1' from line 14 of mhkit/wave/contours.py.
Describe the bug:
If MHKiT happens to be installed in an environment with a version of Matplotlib what contains non-integer characters (e.g., version 3.9.1.post1), then MHKiT will crash on import because it tries to parse the version number by splitting it apart at the decimal places, then casting each part to an int. That leads to
ValueError: invalid literal for int() with base 10: 'post1'
from line 14 ofmhkit/wave/contours.py
.To Reproduce:
Expected behavior:
It should be possible to import MHKiT without raising a ValueError.
The text was updated successfully, but these errors were encountered: