File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import numpy as np
7
7
8
- from ..deprecated import deprecate_with_version
9
-
10
8
MEGABYTE = 1024 * 1024
11
9
12
10
@@ -154,16 +152,6 @@ def total_nb_rows(self):
154
152
""" Total number of rows in this array sequence. """
155
153
return np .sum (self ._lengths )
156
154
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
-
167
155
def get_data (self ):
168
156
""" Returns a *copy* of the elements in this array sequence.
169
157
Original file line number Diff line number Diff line change 10
10
from numpy .testing import assert_array_equal
11
11
12
12
from ..array_sequence import ArraySequence , is_array_sequence , concatenate
13
- from ...deprecator import ExpiredDeprecationError
14
13
15
14
16
15
SEQ_DATA = {}
@@ -95,11 +94,6 @@ def test_creating_arraysequence_from_list(self):
95
94
check_arr_seq (ArraySequence (iter (SEQ_DATA ['data' ]), buffer_size ),
96
95
SEQ_DATA ['data' ])
97
96
98
- def test_deprecated_data_attribute (self ):
99
- seq = ArraySequence (SEQ_DATA ['data' ])
100
- with pytest .raises (ExpiredDeprecationError ):
101
- seq .data
102
-
103
97
def test_creating_arraysequence_from_generator (self ):
104
98
gen_1 , gen_2 = itertools .tee ((e for e in SEQ_DATA ['data' ]))
105
99
seq = ArraySequence (gen_1 )
You can’t perform that action at this time.
0 commit comments