numpy.NewAxis broken #1974
Closed
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: