@@ -209,7 +209,7 @@ class DataInterfaceMixin(GetSetDtypeMixin):
209
209
Use this mixin if your image has a ``dataobj`` property that contains an
210
210
array or an array-like thing.
211
211
"""
212
- meth_names = ('get_fdata' , 'get_data' )
212
+ meth_names = ('get_fdata' ,)
213
213
214
214
def validate_data_interface (self , imaker , params ):
215
215
# Check get data returns array, and caches
@@ -304,27 +304,6 @@ def _check_proxy_interface(self, imaker, meth_name):
304
304
with maybe_deprecated (meth_name ):
305
305
data_again = method ()
306
306
assert data is data_again
307
- # Check the interaction of caching with get_data, get_fdata.
308
- # Caching for `get_data` should have no effect on caching for
309
- # get_fdata, and vice versa.
310
- # Modify the cached data
311
- data [:] = 43
312
- # Load using the other data fetch method
313
- other_name = set (self .meth_names ).difference ({meth_name }).pop ()
314
- other_method = getattr (img , other_name )
315
- with maybe_deprecated (other_name ):
316
- other_data = other_method ()
317
- # We get the original data, not the modified cache
318
- assert_array_equal (proxy_data , other_data )
319
- assert not np .all (data == other_data )
320
- # We can modify the other cache, without affecting the first
321
- other_data [:] = 44
322
- with maybe_deprecated (other_name ):
323
- assert_array_equal (other_method (), 44 )
324
- with pytest .deprecated_call ():
325
- assert not np .all (method () == other_method ())
326
- if meth_name != 'get_fdata' :
327
- return
328
307
# Check that caching refreshes for new floating point type.
329
308
img .uncache ()
330
309
fdata = img .get_fdata ()
0 commit comments