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
Evan Edmond
fslpy
Commits
e6a4d1f8
Commit
e6a4d1f8
authored
Oct 10, 2018
by
Paul McCarthy
🚵
Browse files
RF: Avoid warnings
parent
a5d02f56
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl/data/dicom.py
View file @
e6a4d1f8
...
...
@@ -119,12 +119,12 @@ def enabled():
"""
cmd
=
'dcm2niix -h'
versionPattern
=
re
.
compile
(
'v'
'(?P<major>[0-9]+)\.'
'(?P<minor>[0-9]+)\.'
'(?P<year>[0-9]{4})'
'(?P<month>[0-9]{2})'
'(?P<day>[0-9]{2})'
)
versionPattern
=
re
.
compile
(
r
'v'
'(?P<major>[0-9]+)\.'
'(?P<minor>[0-9]+)\.'
'(?P<year>[0-9]{4})'
'(?P<month>[0-9]{2})'
'(?P<day>[0-9]{2})'
)
try
:
output
=
sp
.
check_output
(
cmd
.
split
()).
decode
()
...
...
fsl/utils/idle.py
View file @
e6a4d1f8
...
...
@@ -85,7 +85,7 @@ import atexit
import
logging
import
functools
import
threading
import
collections
import
collections
.abc
as
abc
try
:
import
queue
except
ImportError
:
import
Queue
as
queue
...
...
@@ -586,7 +586,7 @@ def wait(threads, task, *args, **kwargs):
direct
=
kwargs
.
pop
(
'wait_direct'
,
False
)
if
not
isinstance
(
threads
,
collections
.
Sequence
):
if
not
isinstance
(
threads
,
abc
.
Sequence
):
threads
=
[
threads
]
haveWX
=
fslplatform
.
haveGui
...
...
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