File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change 5454from .arraywriters import make_array_writer
5555from .wrapstruct import WrapStruct
5656from .fileslice import canonical_slicers , predict_shape , slice2outax
57- from .deprecated import deprecate_with_version
5857
5958BLOCK_SIZE = 512
6059
@@ -863,14 +862,6 @@ def get_subheaders(self):
863862 """get access to subheaders"""
864863 return self ._subheader
865864
866- @classmethod
867- @deprecate_with_version ('from_filespec class method is deprecated.\n '
868- 'Please use the ``from_file_map`` class method '
869- 'instead.' ,
870- '2.1' , '4.0' )
871- def from_filespec (klass , filespec ):
872- return klass .from_filename (filespec )
873-
874865 @staticmethod
875866 def _get_fileholders (file_map ):
876867 """ returns files specific to header and image of the image
Original file line number Diff line number Diff line change 2323
2424from ..testing import data_path , suppress_warnings
2525from ..tmpdirs import InTemporaryDirectory
26- from ..deprecator import ExpiredDeprecationError
2726
2827from . import test_wrapstruct as tws
2928from .test_fileslice import slicer_samples
@@ -268,8 +267,3 @@ def test_mlist_regression(self):
268267 # Test mlist is as same as for nibabel 1.3.0
269268 assert_array_equal (self .img .get_mlist (),
270269 [[16842758 , 3 , 3011 , 1 ]])
271-
272-
273- def test_from_filespec_deprecation ():
274- with pytest .raises (ExpiredDeprecationError ):
275- EcatImage .from_filespec (ecat_file )
You can’t perform that action at this time.
0 commit comments