Skip to content

Commit

Permalink
minor switch, popping rather than subscripting #24
Browse files Browse the repository at this point in the history
  • Loading branch information
jacanchaplais committed Jun 2, 2024
1 parent 027fb0a commit acb5191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion showerpipe/lhe.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def _event_text_parse(event_text: str) -> LheEvent:
data = np.loadtxt(iter(lines), dtype=np.float64)
return LheEvent(
**{
name: data[:, meta["idx"]].astype(meta["dtype"])
name: data[:, meta.pop("idx")].astype(meta.pop("dtype"))
for name, meta in schema.items()
}
)
Expand Down

0 comments on commit acb5191

Please sign in to comment.