Skip to content

Commit df57347

Browse files
committed
touch up
1 parent 09b609f commit df57347

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

xanes_exporter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ def xas_fly_exporter(uid):
308308

309309
ch_names = [ch for ch in keys if "channel" in ch]
310310
for ch in ch_names:
311-
df[ch] = np.sum(tbl[ch].read()[:, E_min:E_max], axis=-1)
311+
ch_data = np.squeeze(tbl[ch].read())
312+
df[ch] = np.sum(ch_data[:, E_min:E_max], axis=1)
312313
df.rename(columns={ch: ch.split("_")[-1]}, inplace=True)
313314
df["ch_sum"] = df[[ch for ch in df.keys() if "channel" in ch]].sum(axis=1)
314315

0 commit comments

Comments
 (0)