From 76307127a63e38b6a97252cd9f7bb22a501dadbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Le=20Guyader?= <loic.le.guyader@xfel.eu> Date: Tue, 29 Oct 2019 10:33:42 +0100 Subject: [PATCH] Prevent temporary dimension to clash with existing dimension --- XAS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XAS.py b/XAS.py index 8f4ae67..c7605d5 100644 --- a/XAS.py +++ b/XAS.py @@ -122,7 +122,7 @@ def xas(nrun, bins=None, Iokey='SCS_SA3', Itkey='MCP3apd', nrjkey='nrj', Iooffse counts: the number of events in each bin """ - stacked = nrun.stack(x=['trainId','sa3_pId']) + stacked = nrun.stack(dummy_=['trainId','sa3_pId']) Io = stacked[Iokey].values + Iooffset It = stacked[Itkey].values -- GitLab