Skip to content

Commit

Permalink
adopt corsika_primary cxcxy/uv wars.
Browse files Browse the repository at this point in the history
  • Loading branch information
relleums committed Feb 22, 2024
1 parent 501d6e0 commit db8bc5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions airshower_template_generator/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,15 @@ def run_job(job):

view = cherenkov_bunches[meets, :]

MOMENTUM_TO_POINTING = -1.0
(
cer_cpara,
cer_cperp,
) = projection.project_light_field_onto_source_image(
cer_cx_rad=view[:, cpw.I.BUNCH.CX_RAD],
cer_cy_rad=view[:, cpw.I.BUNCH.CY_RAD],
cer_cx_rad=MOMENTUM_TO_POINTING
* view[:, cpw.I.BUNCH.UX_1],
cer_cy_rad=MOMENTUM_TO_POINTING
* view[:, cpw.I.BUNCH.VY_1],
cer_x_m=xy_supports[azi][rad][probe][0],
cer_y_m=xy_supports[azi][rad][probe][1],
primary_cx_rad=0.0,
Expand Down
2 changes: 1 addition & 1 deletion airshower_template_generator/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.6"
__version__ = "0.3.7"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
install_requires=[
"json_utils_sebastian-achim-mueller",
"binning_utils_sebastian-achim-mueller",
"corsika_primary",
"corsika_primary>=2.3.0",
"atmospheric_cherenkov_response_cherenkov-plenoscope-project",
"sebastians_matplotlib_addons",
"rename_after_writing",
Expand Down

0 comments on commit db8bc5d

Please sign in to comment.