Skip to content

Commit 173c946

Browse files
committed
Conversion without extension
1 parent a09d212 commit 173c946

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CPAC/nuisance/utils/compcor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ def TR_string_to_float(tr):
204204
tr_numeric = float(tr_str[:-2]) * 0.001
205205
elif tr.endswith('s'):
206206
tr_numeric = float(tr_str[:-1])
207+
else:
208+
tr_numeric = float(tr_str)
207209
except Exception as exc:
208210
raise ValueError(f'Can not convert TR string to float: "{tr}".') from exc
209211

0 commit comments

Comments
 (0)