Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
d822f419
Commit
d822f419
authored
Sep 02, 2019
by
Michiel Cottaar
Browse files
BUG: remove deprecated method
parent
fa643260
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/filetree/filetree.py
View file @
d822f419
...
...
@@ -327,17 +327,6 @@ class FileTree(object):
return
False
return
True
@
deprecated
(
rin
=
'2.4'
,
msg
=
'Use FileTree.defines or FileTree.on_disk instead'
)
def
exists
(
self
,
short_names
,
on_disk
=
False
,
error
=
False
,
glob_vars
=
()):
"""
Deprecated in favor of :meth:`on_disk` and :meth:`defines`.
"""
if
on_disk
:
return
self
.
on_disk
(
short_names
,
error
=
error
,
glob_vars
=
glob_vars
)
else
:
return
self
.
defines
(
short_names
,
error
=
error
,
glob_vars
=
glob_vars
)
@
classmethod
def
read
(
cls
,
tree_name
:
str
,
directory
=
'.'
,
**
variables
)
->
"FileTree"
:
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment