We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NO_ET
1 parent dfb10ff commit a8b5d03Copy full SHA for a8b5d03
fmriprep/config.py
@@ -71,8 +71,9 @@
71
from multiprocessing import set_start_method
72
73
# Disable NiPype etelemetry always
74
-_nipype_et = os.getenv("NIPYPE_NO_ET")
+_disable_et = bool(os.getenv("NO_ET") is not None or os.getenv("NIPYPE_NO_ET") is not None)
75
os.environ["NIPYPE_NO_ET"] = "1"
76
+os.environ["NO_ET"] = "1"
77
78
try:
79
set_start_method('forkserver')
@@ -115,7 +116,7 @@
115
116
117
# Ping NiPype eTelemetry once if env var was not set
118
# workers on the pool will have the env variable set from the master process
-if _nipype_et is None:
119
+if not _disable_et:
120
# Just get so analytics track one hit
121
from contextlib import suppress
122
from requests import get as _get_url, ConnectionError, ReadTimeout
0 commit comments