Skip to content

Commit ad6b890

Browse files
authored
Merge pull request #719 from arokem/array_sequence_resize
FIX: Skip refcheck in ArraySequence construction/extension
2 parents f9e7670 + 872ce94 commit ad6b890

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nibabel/streamlines/array_sequence.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ def _resize_data_to(self, n_rows, build_cache):
199199
self._data.resize(new_shape)
200200

201201
def shrink_data(self):
202-
self._data.resize((self._get_next_offset(),) + self.common_shape)
202+
self._data.resize((self._get_next_offset(),) + self.common_shape,
203+
refcheck=False)
203204

204205
def extend(self, elements):
205206
""" Appends all `elements` to this array sequence.

0 commit comments

Comments
 (0)