fixed MetaArray.copy

This commit is contained in:
Luke Campagnola 2012-05-29 23:20:18 -04:00
parent 35357308b9
commit 5f94cebdaf

View File

@ -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):