aboutsummaryrefslogtreecommitdiff
path: root/utils/plot
diff options
context:
space:
mode:
Diffstat (limited to 'utils/plot')
-rwxr-xr-xutils/plot2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/plot b/utils/plot
index 1bac500..fd5ea51 100755
--- a/utils/plot
+++ b/utils/plot
@@ -90,7 +90,7 @@ if __name__ == '__main__':
fits = pd.read_hdf(filename, "fits")
# get rid of 2nd events like Michel electrons
- ev = ev.sort_values(['run','gtid']).groupby(['evn'],as_index=False).first()
+ ev = ev.sort_values(['run','gtid']).groupby(['evn'],as_index=False).nth(0)
# Now, we merge all three datasets together to produce a single
# dataframe. To do so, we join the ev dataframe with the mcgn frame