BIDS / datarray

Prototyping numpy arrays with named axes for data management.
http://bids.github.com/datarray
Other
87 stars 20 forks source link

Reducing a 1d datarray along axis 0 #2

Closed kwgoodman closed 14 years ago

kwgoodman commented 14 years ago

This works:

>> DataArray([1, 2, 3]).sum()
   6

But this doesn't:

>> DataArray([1, 2, 3]).sum(axis=0)
<snip>
AttributeError: 'numpy.int64' object has no attribute 'axes'

Same result with different dtypes and with different reducing method (max etc).