We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09b609f commit df57347Copy full SHA for df57347
1 file changed
xanes_exporter.py
@@ -308,7 +308,8 @@ def xas_fly_exporter(uid):
308
309
ch_names = [ch for ch in keys if "channel" in ch]
310
for ch in ch_names:
311
- df[ch] = np.sum(tbl[ch].read()[:, E_min:E_max], axis=-1)
+ ch_data = np.squeeze(tbl[ch].read())
312
+ df[ch] = np.sum(ch_data[:, E_min:E_max], axis=1)
313
df.rename(columns={ch: ch.split("_")[-1]}, inplace=True)
314
df["ch_sum"] = df[[ch for ch in df.keys() if "channel" in ch]].sum(axis=1)
315
0 commit comments