Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into docs-using-get-fdata
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jun 11, 2018
2 parents a021905 + 587a6c7 commit 95cb2b4
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 169 deletions.
2 changes: 1 addition & 1 deletion nibabel/dataobj_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def get_fdata(self, caching='fill', dtype=np.float64):
if self._fdata_cache is not None:
if self._fdata_cache.dtype.type == dtype.type:
return self._fdata_cache
data = np.asanyarray(self._dataobj).astype(dtype)
data = np.asanyarray(self._dataobj).astype(dtype, copy=False)
if caching == 'fill':
self._fdata_cache = data
return data
Expand Down

0 comments on commit 95cb2b4

Please sign in to comment.