Skip to content

Commit dca460f

Browse files
authored
Re-revert caching fix
1 parent b1204d5 commit dca460f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/dataobj_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def get_fdata(self, caching='fill', dtype=np.float64):
344344
if self._fdata_cache is not None:
345345
if self._fdata_cache.dtype.type == dtype.type:
346346
return self._fdata_cache
347-
data = np.asanyarray(self._dataobj).astype(dtype)
347+
data = np.asanyarray(self._dataobj).astype(dtype, copy=False)
348348
if caching == 'fill':
349349
self._fdata_cache = data
350350
return data

0 commit comments

Comments
 (0)