-
Notifications
You must be signed in to change notification settings - Fork 10
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 #6
Comments
From @doutriaux1 on May 16, 2016 21:46 for now a wrork around:
|
From @doutriaux1 on May 16, 2016 21:46 @lee1043 thanks for reporting this bug |
From @doutriaux1 on May 25, 2016 18:18 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,:] |
Done! |
@dnadeau4 related to axes see CDAT/cdat#1738 #41 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From @doutriaux1 on May 16, 2016 21:45
the follwoing used to work
Copied from original issue: CDAT/cdat#1974
The text was updated successfully, but these errors were encountered: