Skip to content

Commit f3efc0e

Browse files
committed
enh: add etelemetry
1 parent 39d2b2d commit f3efc0e

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

info.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@
5151
PLATFORMS = "Linux"
5252
VERSION = __version__
5353
PROVIDES = ["mindboggle"]
54-
REQUIRES = ["nipype", "matplotlib", "colormath", "pandas"]
54+
REQUIRES = ["nipype", "matplotlib", "colormath", "pandas",
55+
"etelemetry"]
5556

mindboggle/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,18 @@
1717
#from . import blah as blah
1818
# object imports
1919
#from .blah import blah, blah
20+
21+
import etelemetry
22+
23+
INIT_MSG = "Running {packname} version {version} (latest: {latest})".format
24+
latest = {"version": 'Unknown'}
25+
try:
26+
from .version import __version__
27+
latest = etelemetry.get_project("nipy/mindboggle")
28+
except Exception as e:
29+
print("Could not check for version updates: ", e)
30+
finally:
31+
print(INIT_MSG(packname='mindboggle',
32+
version=__version__,
33+
latest=latest["version"]))
34+

mindboggle/mindboggle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,8 @@ if __name__ == '__main__':
23752375
# ------------------------------------------------------------------------
23762376
mbFlow.config['execution']['hash_method'] = 'content'
23772377
mbFlow.config['execution']['crashfile_format'] = 'txt'
2378-
# mbFlow.config['execution']['use_relative_paths'] = True
2378+
# Do not propagate the check to sub nodes
2379+
mbFlow.config['execution']['check_version'] = False
23792380

23802381
# ------------------------------------------------------------------------
23812382
# Generate a visual graph:

mindboggle/mindboggle123

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,10 @@ if __name__ == '__main__':
452452
# Workflow configuration: content hashing, crashfiles, etc.:
453453
# --------------------------------------------------------------------
454454
mbFlow.config['execution']['hash_method'] = 'content'
455-
# mbFlow.config['execution']['use_relative_paths'] = True
456455
mbFlow.config['execution']['crashfile_format'] = 'txt'
457456
mbFlow.config['execution']['crashdump_dir'] = WORK
457+
# Do not propagate the version check to sub nodes
458+
mbFlow.config['execution']['check_version'] = False
458459

459460
# --------------------------------------------------------------------
460461
# Debug: http://nipy.org/nipype/users/config_file.html#debug-configuration

0 commit comments

Comments
 (0)