Skip to content
Snippets Groups Projects
Commit 02f3f0d0 authored by Radonirinaunimi's avatar Radonirinaunimi Committed by Roy Stegeman
Browse files

add comment on why y might be greater than 1

parent 71941f9d
No related branches found
No related tags found
1 merge request!2039Polish EIC data files
......@@ -63,6 +63,9 @@ def read_excel(path_xlsx: Path, beams: tuple) -> pd.DataFrame:
xdf = pd.read_excel(path_xlsx)
el, ep = beams
df_beam = xdf[(xdf["El"] == el) & (xdf["Eh"] == ep)]
# Because sometimes the raw data contains events with `y>1` due to the
# detector and MC simulation, we need to make sure that these are not
# considered and removed.
return df_beam[df_beam["y"] <= 1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment