Skip to content

Commit 0630fa7

Browse files
committed
Merge remote-tracking branch 'nipy/master' into support-multiecho-phase
2 parents f717a96 + d31d19d commit 0630fa7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

heudiconv/cli/run.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import logging
1717
lgr = logging.getLogger(__name__)
1818

19-
INIT_MSG = "Running {packname} version {version}".format
19+
INIT_MSG = "Running {packname} version {version} latest {latest}".format
2020

2121

2222
def is_interactive():
@@ -245,8 +245,16 @@ def process_args(args):
245245

246246
outdir = op.abspath(args.outdir)
247247

248+
import etelemetry
249+
try:
250+
latest = etelemetry.get_project("nipy/heudiconv")
251+
except Exception as e:
252+
lgr.warning("Could not check for version updates: ", e)
253+
latest = {"version": 'Unknown'}
254+
248255
lgr.info(INIT_MSG(packname=__packagename__,
249-
version=__version__))
256+
version=__version__,
257+
latest=latest["version"]))
250258

251259
if args.command:
252260
process_extra_commands(outdir, args)

heudiconv/info.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
REQUIRES = [
1212
'nibabel',
1313
'pydicom',
14-
'nipype>=1.0.0',
14+
'nipype >=1.0.0; python_version > "3.0"',
15+
'nipype >=1.0.0,!=1.2.1,!=1.2.2; python_version == "2.7"',
1516
'pathlib',
1617
'dcmstack>=0.7',
18+
'etelemetry',
1719
]
1820

1921
TESTS_REQUIRES = [

0 commit comments

Comments
 (0)