Skip to content

Commit fd99ffd

Browse files
committed
more permissive treatment of rows with extra fields
1 parent ae3ca2b commit fd99ffd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/algorithms/misc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,9 @@ def _run_interface(self, runtime):
12061206
iflogger.error( 'Number of cols and length of field headings must be > 0' )
12071207

12081208
if len( self.inputs.new_fields ) != cols:
1209-
iflogger.error( 'Wrong length of fields, does not match number of cols' )
1209+
iflogger.warn( 'Wrong length of fields (%d), does not match number of \
1210+
cols (%d)' % (len(self.inputs.new_fields), cols ) )
1211+
cols = len( self.inputs.new_fields )
12101212

12111213
if len(headings)>0:
12121214
argstr = '{:>%d}' % col_width

0 commit comments

Comments
 (0)