Skip to content

Commit

Permalink
Fix nifti data loading to memory (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
anwai98 authored Dec 4, 2023
1 parent a47d46d commit 8cbd808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elf/io/nifti_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __getitem__(self, key):
key, to_squeeze = normalize_index(key, self.shape)
transposed_key = key[::-1]
data = self._data.dataobj[transposed_key].T
return squeeze_singletons(data, to_squeeze)
return squeeze_singletons(data, to_squeeze).copy()

@property
def size(self):
Expand Down

0 comments on commit 8cbd808

Please sign in to comment.