Skip to content

Commit 2d282fd

Browse files

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CPAC/sca/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ def check_ts(in_file):
7272
import os
7373
import numpy as np
7474

75-
if '.txt' in in_file:
75+
if in_file.endswith('.txt'):
7676
try:
7777
timepoints, rois = np.loadtxt(in_file).shape
7878
except ValueError:
7979
timepoints = np.loadtxt(in_file).shape[0]
8080
rois = 1
8181
out_file = in_file
82-
elif '.csv' in in_file:
82+
elif in_file.endswith('.csv') or in_file.endswith('.1D'):
8383
csv_array = np.genfromtxt(in_file, delimiter=',')
8484
if np.isnan(csv_array[0][0]):
8585
csv_array = csv_array[1:]

0 commit comments

Comments
 (0)