Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
fslpy
Commits
22ad035d
Commit
22ad035d
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Suppress warnings in scripts
parent
61e58bc4
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
fsl/scripts/atlasq.py
+15
-3
15 additions, 3 deletions
fsl/scripts/atlasq.py
fsl/scripts/imcp.py
+8
-2
8 additions, 2 deletions
fsl/scripts/imcp.py
fsl/scripts/imglob.py
+6
-1
6 additions, 1 deletion
fsl/scripts/imglob.py
fsl/scripts/immv.py
+8
-2
8 additions, 2 deletions
fsl/scripts/immv.py
with
37 additions
and
8 deletions
fsl/scripts/atlasq.py
+
15
−
3
View file @
22ad035d
...
...
@@ -15,12 +15,24 @@ import itertools as it
import
sys
import
argparse
import
textwrap
import
warnings
import
logging
import
numpy
as
np
import
fsl.data.atlases
as
fslatlases
import
fsl.version
as
fslversion
import
fsl.data.image
as
fslimage
# if h5py <= 2.7.1 is installed,
# it will be imported via nibabel,
# and will cause a numpy warning
# to be emitted.
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
"
ignore
"
,
category
=
FutureWarning
)
import
fsl.data.image
as
fslimage
# If wx is not present, then fsl.utils.platform
# will complain that it is not present.
logging
.
getLogger
(
'
fsl.utils.platform
'
).
setLevel
(
logging
.
ERROR
)
import
fsl.data.atlases
as
fslatlases
# noqa
import
fsl.version
as
fslversion
# noqa
log
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
fsl/scripts/imcp.py
+
8
−
2
View file @
22ad035d
...
...
@@ -16,9 +16,15 @@ from __future__ import print_function
import
os.path
as
op
import
sys
import
warnings
import
fsl.utils.path
as
fslpath
import
fsl.utils.imcp
as
imcp
import
fsl.data.image
as
fslimage
# See atlasq.py for explanation
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
"
ignore
"
,
category
=
FutureWarning
)
import
fsl.utils.imcp
as
imcp
import
fsl.data.image
as
fslimage
usage
=
"""
Usage:
...
...
This diff is collapsed.
Click to expand it.
fsl/scripts/imglob.py
+
6
−
1
View file @
22ad035d
...
...
@@ -12,8 +12,13 @@ NIFTI/ANALYZE image files.
from
__future__
import
print_function
import
sys
import
warnings
import
fsl.utils.path
as
fslpath
import
fsl.data.image
as
fslimage
# See atlasq.py for explanation
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
"
ignore
"
,
category
=
FutureWarning
)
import
fsl.data.image
as
fslimage
usage
=
"""
...
...
This diff is collapsed.
Click to expand it.
fsl/scripts/immv.py
+
8
−
2
View file @
22ad035d
...
...
@@ -17,9 +17,15 @@ from __future__ import print_function
import
os.path
as
op
import
sys
import
warnings
import
fsl.utils.path
as
fslpath
import
fsl.utils.imcp
as
imcp
import
fsl.data.image
as
fslimage
# See atlasq.py for explanation
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
"
ignore
"
,
category
=
FutureWarning
)
import
fsl.utils.imcp
as
imcp
import
fsl.data.image
as
fslimage
usage
=
"""
Usage:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment