We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.csv
.1D
1 parent 3e507cc commit 2d282fdCopy full SHA for 2d282fd
CPAC/sca/utils.py
@@ -72,14 +72,14 @@ def check_ts(in_file):
72
import os
73
import numpy as np
74
75
- if '.txt' in in_file:
+ if in_file.endswith('.txt'):
76
try:
77
timepoints, rois = np.loadtxt(in_file).shape
78
except ValueError:
79
timepoints = np.loadtxt(in_file).shape[0]
80
rois = 1
81
out_file = in_file
82
- elif '.csv' in in_file:
+ elif in_file.endswith('.csv') or in_file.endswith('.1D'):
83
csv_array = np.genfromtxt(in_file, delimiter=',')
84
if np.isnan(csv_array[0][0]):
85
csv_array = csv_array[1:]
0 commit comments