Skip to content

Commit cda31e9

Browse files
committed
Minor fixes, still needed some further tests
1 parent 8103357 commit cda31e9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Next Release
22
============
33

4+
* ENH: New miscelaneous interface: AddCSVRow
45
* API: Interfaces to external packages are no longer available in the top-level ``nipype`` namespace, and must be imported directly (e.g. ``from nipype.interfaces import fsl``).
56
* ENH: New ANTs interface: ApplyTransformsToPoints
67
* ENH: New FreeSurfer workflow: create_skullstripped_recon_flow()

nipype/algorithms/misc.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,20 +1190,20 @@ class AddCSVRow(BaseInterface):
11901190
"""
11911191
input_spec = AddCSVRowInputSpec
11921192
output_spec = AddCSVRowOutputSpec
1193-
_have_lock = False
1194-
_lock = None
11951193

11961194
def __init__(self, infields=None, force_run=True, **kwargs):
11971195
super(AddCSVRow, self).__init__(**kwargs)
11981196
undefined_traits = {}
11991197
self._infields = infields
1198+
self._have_lock = False
1199+
self._lock = None
12001200

12011201
if infields:
12021202
for key in infields:
12031203
self.inputs.add_trait( key, traits.Any )
12041204
self.inputs._outputs[key] = Undefined
12051205
undefined_traits[key] = Undefined
1206-
self.inputs.trait_set( trait_change_notify=False, **undefined_traits )
1206+
self.inputs.trait_set(trait_change_notify=False, **undefined_traits )
12071207

12081208
if force_run:
12091209
self._always_run = True
@@ -1222,10 +1222,7 @@ def _run_interface(self, runtime):
12221222
warnings.warn(('Python module lockfile was not found: AddCSVRow will not be thread-safe '
12231223
'in multi-processor execution'))
12241224

1225-
1226-
12271225
input_dict = {}
1228-
12291226
for key, val in self.inputs._outputs.items():
12301227
# expand lists to several columns
12311228
if isinstance(val, list):

0 commit comments

Comments
 (0)