Skip to content

Commit

Permalink
adapting the test to account for changes in the master branch (r0 con…
Browse files Browse the repository at this point in the history
…tainer: image->waveform)
  • Loading branch information
LukasNickel committed May 22, 2019
1 parent 7058a23 commit 0572d33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ctapipe/reco/tests/test_HillasReconstructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_estimator_results():
p1 = SkyCoord(alt=44.5 * u.deg, az=45 * u.deg, frame=horizon_frame)
p2 = SkyCoord(alt=46.5 * u.deg, az=45 * u.deg, frame=horizon_frame)
circle3 = HillasPlane(p1=p1, p2=p2, telescope_position=[0, -1, 0] * u.m)

but would need to make sure
p1 = SkyCoord(alt=43.5 * u.deg, az=90 * u.deg, frame=horizon_frame)
p2 = SkyCoord(alt=45.5 * u.deg, az=90 * u.deg, frame=horizon_frame)
circle4 = HillasPlane(p1=p1, p2=p2, telescope_position=[-1, 0, 0] * u.m)
Expand Down Expand Up @@ -151,14 +151,14 @@ def test_invalid_events():
Test will fail if no Exception or another Exception gets thrown."""

filename = get_dataset_path("gamma_test.simtel.gz")
filename = get_dataset_path("gamma_test_large.simtel.gz")

fit = HillasReconstructor()

tel_azimuth = {}
tel_altitude = {}

source = event_source(filename)
source = event_source(filename, max_events=10)

for event in source:

Expand All @@ -169,7 +169,7 @@ def test_invalid_events():
tel_azimuth[tel_id] = event.mc.tel[tel_id].azimuth_raw * u.rad
tel_altitude[tel_id] = event.mc.tel[tel_id].altitude_raw * u.rad

pmt_signal = event.r0.tel[tel_id].image[0]
pmt_signal = event.r0.tel[tel_id].waveform[0].sum(axis=1)

mask = tailcuts_clean(geom, pmt_signal,
picture_thresh=10., boundary_thresh=5.)
Expand Down

0 comments on commit 0572d33

Please sign in to comment.