Skip to content

Commit c903c81

Browse files
committed
MNT: Remove EcatImage.from_filespec
1 parent b9d3237 commit c903c81

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

nibabel/ecat.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
from .arraywriters import make_array_writer
5555
from .wrapstruct import WrapStruct
5656
from .fileslice import canonical_slicers, predict_shape, slice2outax
57-
from .deprecated import deprecate_with_version
5857

5958
BLOCK_SIZE = 512
6059

@@ -864,14 +863,6 @@ def get_subheaders(self):
864863
"""get access to subheaders"""
865864
return self._subheader
866865

867-
@classmethod
868-
@deprecate_with_version('from_filespec class method is deprecated.\n'
869-
'Please use the ``from_file_map`` class method '
870-
'instead.',
871-
'2.1', '4.0')
872-
def from_filespec(klass, filespec):
873-
return klass.from_filename(filespec)
874-
875866
@staticmethod
876867
def _get_fileholders(file_map):
877868
""" returns files specific to header and image of the image

nibabel/tests/test_ecat.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
from ..testing import data_path, suppress_warnings
2525
from ..tmpdirs import InTemporaryDirectory
26-
from ..deprecator import ExpiredDeprecationError
2726

2827
from . import test_wrapstruct as tws
2928
from .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)

0 commit comments

Comments
 (0)