Skip to content

Commit 1abe681

Browse files
committed
MNT: Remove ArraySequence.data property
1 parent 94c9395 commit 1abe681

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

nibabel/streamlines/array_sequence.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
import numpy as np
77

8-
from ..deprecated import deprecate_with_version
9-
108
MEGABYTE = 1024 * 1024
119

1210

@@ -154,16 +152,6 @@ def total_nb_rows(self):
154152
""" Total number of rows in this array sequence. """
155153
return np.sum(self._lengths)
156154

157-
@property
158-
@deprecate_with_version("'ArraySequence.data' property is deprecated.\n"
159-
"Please use the 'ArraySequence.get_data()' method instead",
160-
'3.0', '4.0')
161-
def data(self):
162-
""" Elements in this array sequence. """
163-
view = self._data.view()
164-
view.setflags(write=False)
165-
return view
166-
167155
def get_data(self):
168156
""" Returns a *copy* of the elements in this array sequence.
169157

0 commit comments

Comments
 (0)