Commit 3d4ee667 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Fixes run_seq if only one quad issue

Showing with 1 addition and 1 deletion
+1 -1
...@@ -276,7 +276,7 @@ class OhmPi(object): ...@@ -276,7 +276,7 @@ class OhmPi(object):
headers[i] = 'R [Ohm]' headers[i] = 'R [Ohm]'
icols = list(np.where(np.in1d(headers, ['A', 'B', 'M', 'N', 'R [Ohm]']))[0]) icols = list(np.where(np.in1d(headers, ['A', 'B', 'M', 'N', 'R [Ohm]']))[0])
data = np.loadtxt(os.path.join(ddir, fname), delimiter=',', data = np.loadtxt(os.path.join(ddir, fname), delimiter=',',
skiprows=1, usecols=icols) skiprows=1, usecols=icols, ndmin=2)
data = data[None, :] if len(data.shape) == 1 else data data = data[None, :] if len(data.shape) == 1 else data
ddic[fname.replace('.csv', '')] = { ddic[fname.replace('.csv', '')] = {
'a': data[:, 0].astype(int).tolist(), 'a': data[:, 0].astype(int).tolist(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment