File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1166,10 +1166,19 @@ class AddCSVRowOutputSpec(TraitedSpec):
1166
1166
csv_file = File (desc = 'Output CSV file containing rows ' )
1167
1167
1168
1168
class AddCSVRow (BaseInterface ):
1169
- """
1170
- Short interface to add an extra row to a text file
1169
+ """Simple interface to add an extra row to a csv file
1170
+
1171
+ .. warning::
1172
+
1173
+ This interface is not thread-safe in multi-proc mode when
1174
+ writing the output file.
1175
+
1176
+
1177
+ .. note::
1178
+
1171
1179
Requires pandas - http://pandas.pydata.org/
1172
1180
1181
+
1173
1182
Example
1174
1183
-------
1175
1184
@@ -1186,6 +1195,7 @@ class AddCSVRow(BaseInterface):
1186
1195
output_spec = AddCSVRowOutputSpec
1187
1196
1188
1197
def __init__ (self , infields = None , force_run = True , ** kwargs ):
1198
+ warnings .warn ('AddCSVRow is not thread-safe in multi-processor execution' )
1189
1199
super (AddCSVRow , self ).__init__ (** kwargs )
1190
1200
undefined_traits = {}
1191
1201
self ._infields = infields
You can’t perform that action at this time.
0 commit comments