Skip to content

Commit

Permalink
Apparently the genie weighting never worked to begin with. Fix it bef…
Browse files Browse the repository at this point in the history
…ore moving on.
  • Loading branch information
mjlarson committed Aug 29, 2024
1 parent b4a664f commit c465dcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics'
]
dependencies = ["numpy>=1.21.2", "scipy"]
dependencies = ["numpy>=1.21.2", "numpy<2.0.0", "scipy"]
dynamic = ["version", "description"]
keywords = ["python", "science", "astronomy", "astrophysics", "IceCube", "neutrino", "simulation"]
license = {file = "LICENSES/BSD-2-Clause.txt"}
Expand Down
1 change: 1 addition & 0 deletions src/simweights/_genie_weighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def GenieWeighter(file_obj: Any) -> Weighter: # noqa: N802
weighter = Weighter([file_obj], surface)
weighter.add_weight_column("pdgid", weighter.get_column("I3GenieResult", "neu").astype(np.int32))
weighter.add_weight_column("energy", weighter.get_column("I3GenieResult", "Ev"))
weighter.add_weight_column("cos_zen", weighter.get_column("I3GenieResult", "pzv"))
weighter.add_weight_column("wght", weighter.get_column("I3GenieResult", "wght"))

return weighter

0 comments on commit c465dcb

Please sign in to comment.