[indexing] maybe? cannot tell, tests are broken

This commit is contained in:
mzwiessele 2014-09-04 18:02:34 +01:00
parent 4886dfde08
commit d06f8b9272

View file

@ -254,7 +254,6 @@ class Param(Parameterizable, ObsAr):
#if not np.all(indices==indices__): #if not np.all(indices==indices__):
# import ipdb; ipdb.set_trace() # import ipdb; ipdb.set_trace()
except: except:
print "Warning: extended indexing was used"
indices = np.indices(self._realshape_, dtype=int) indices = np.indices(self._realshape_, dtype=int)
indices = indices[(slice(None),)+slice_index] indices = indices[(slice(None),)+slice_index]
indices = np.rollaxis(indices, 0, indices.ndim) indices = np.rollaxis(indices, 0, indices.ndim)