Skip to content

Commit

Permalink
Merge pull request #68 from HealthyPear/fix-issue64
Browse files Browse the repository at this point in the history
Convert pointing values to float64 at reading time
  • Loading branch information
HealthyPear authored Oct 23, 2020
2 parents 038e733 + ee0bc51 commit 1c8da28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protopipe/pipeline/event_preparer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,8 @@ def prepare_event(self, source, return_stub=False, save_images=False, debug=Fals
except (FloatingPointError, hillas.HillasParameterizationError):
continue

point_azimuth_dict[tel_id] = event.mc.tel[tel_id].azimuth_raw * u.rad
point_altitude_dict[tel_id] = event.mc.tel[tel_id].altitude_raw * u.rad
point_azimuth_dict[tel_id] = event.mc.tel[tel_id].azimuth_raw.astype(np.float64) * u.rad
point_altitude_dict[tel_id] = event.mc.tel[tel_id].altitude_raw.astype(np.float64) * u.rad

n_tels[tel_type] += 1
hillas_dict[tel_id] = moments
Expand Down

0 comments on commit 1c8da28

Please sign in to comment.