We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9dd97c commit 09b609fCopy full SHA for 09b609f
1 file changed
xanes_exporter.py
@@ -308,7 +308,7 @@ 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)
+ df[ch] = np.sum(tbl[ch].read()[:, E_min:E_max], axis=-1)
312
df.rename(columns={ch: ch.split("_")[-1]}, inplace=True)
313
df["ch_sum"] = df[[ch for ch in df.keys() if "channel" in ch]].sum(axis=1)
314
0 commit comments