Closed mankoff closed 10 years ago
You said gsw 3.0.2 so you probably installed it from PyPI. If that's the case let me know your numpy version. There is a known bug with newer numpy that should be fixed in the github master repository.
If you wish to install from github try:
sudo pip install https://github.com/ocefpaf/python-gsw/zipball/master
Yes PyPI and Numpy version is 1.8.0.
And yes, installing from master branch fixes it.
Thanks for reporting.
The following code is causing
gsw
v. 3.0.2 to crash:with the error:
IndexError: too many indices
on line 128 of library.py: https://github.com/ocefpaf/python-gsw/blob/master/gsw/gibbs/library.py#L128That line is performing operations on
w
andvalid
, which look like: