Skip to content

Commit 591fc63

Browse files
satraeffigies
andcommitted
Apply suggestions from code review
Co-Authored-By: Chris Markiewicz <[email protected]>
1 parent 2ba619d commit 591fc63

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nipype/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def check_latest_version(raise_exception=False):
124124
if config.getboolean("execution", "check_version"):
125125
import __main__
126126

127-
if not hasattr(__main__, "__file__") and "NO_NIPYPE_ET" in os.environ:
127+
if not hasattr(__main__, "__file__") and "NO_NIPYPE_ET" not in os.environ:
128128
from .interfaces.base import BaseInterface
129129

130130
if BaseInterface._etelemetry_version_data is None:

nipype/interfaces/base/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def __init__(
170170
):
171171
if (
172172
config.getboolean("execution", "check_version")
173-
and "NO_NIPYPE_ET" in os.environ
173+
and "NO_NIPYPE_ET" not in os.environ
174174
):
175175
from ... import check_latest_version
176176

nipype/pipeline/plugins/multiproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run_node(node, updatehash, taskid):
7676
def process_initializer(cwd):
7777
"""Initializes the environment of the child process"""
7878
os.chdir(cwd)
79-
os.environ["NO_ET"] = "1"
79+
os.environ["NO_NIPYPE_ET"] = "1"
8080

8181

8282
class MultiProcPlugin(DistributedPluginBase):

0 commit comments

Comments
 (0)