We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b308bf commit c5f0ecfCopy full SHA for c5f0ecf
nibabel/brikhead.py
@@ -272,10 +272,9 @@ def __array__(self):
272
def __getitem__(self, slicer):
273
raw_data = super(AFNIArrayProxy, self).__getitem__(slicer)
274
# apply volume specific scaling (may change datatype!)
275
- if self._scaling is not None:
276
- scaling = self._scaling.copy()
+ if self.scaling is not None:
277
fake_data = strided_scalar(self._shape)
278
- _, scaling = np.broadcast_arrays(fake_data, scaling)
+ _, scaling = np.broadcast_arrays(fake_data, self.scaling)
279
raw_data = raw_data * scaling[slicer]
280
return raw_data
281
0 commit comments