fixed MetaArray.copy
This commit is contained in:
parent
35357308b9
commit
5f94cebdaf
@ -430,9 +430,7 @@ class MetaArray(object):
|
|||||||
return copy.deepcopy(self._info[self._interpretAxis(axis)])
|
return copy.deepcopy(self._info[self._interpretAxis(axis)])
|
||||||
|
|
||||||
def copy(self):
|
def copy(self):
|
||||||
a = np.ndarray.copy(self)
|
return MetaArray(self._data.copy(), info=self.infoCopy())
|
||||||
a._info = self.infoCopy()
|
|
||||||
return a
|
|
||||||
|
|
||||||
|
|
||||||
def _interpretIndexes(self, ind):
|
def _interpretIndexes(self, ind):
|
||||||
|
Loading…
Reference in New Issue
Block a user