-
Notifications
You must be signed in to change notification settings - Fork 68
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
numpy.NewAxis broken #1974
Comments
for now a wrork around:
|
@lee1043 thanks for reporting this bug |
maybe 3.0 target? |
import MV2
import numpy
b=MV2.ones((10,12))
a=b[0]
c=b+a[numpy.newaxis,:]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/software/anaconda2/envs/numpy1_11/lib/python2.7/site-packages/cdms2/avariable.py", line 1413, in __getitem__
speclist = self._process_specs(key, {})
File "/software/anaconda2/envs/numpy1_11/lib/python2.7/site-packages/cdms2/avariable.py", line 1181, in _process_specs
raise CDMSError, 'Sorry, you cannot use NewAxis in this context ' + str(specs)
cdms2.error.CDMSError: Sorry, you cannot use NewAxis in this context (None, slice(None, None, None))
c=b.asma()+a.asma()[numpy.newaxis,:] |
This issue was moved to CDAT/cdms#6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the follwoing used to work
The text was updated successfully, but these errors were encountered: