Skip to content

Update throughput calibration code

Gabriel Emery requested to merge throughput_calib_refactoring into main

Description

Recover code evolution for the throughput calibration lost during transition to the common calibpipe repository. Also creates a set of init files.

How Has This Been Tested?

Manually tested using provided test file. Not all functionality (exceptions treatment) is covered, but OK for now.

throughput_calibrator -i calibpipe/tests/data/thoughput/simtel_run501_muon_telescope_transmission_0.8.simtel.gz --log-level INFO
2022-09-14 14:32:36,094 INFO [calibpipe.calibpipe-thoughput-calibration] (tool.initialize): Loading config from '[]'
2022-09-14 14:32:36,095 INFO [calibpipe.calibpipe-thoughput-calibration] (tool.initialize): ctapipe version 0.16.1.dev13+g8c5ea164
2022-09-14 14:32:36,095 INFO [calibpipe.calibpipe-thoughput-calibration] (tool.run): Starting: calibpipe-thoughput-calibration
2022-09-14 14:32:36,148 INFO [calibpipe.calibpipe-thoughput-calibration.SimTelEventSource] (eventsource.__init__): INPUT PATH = /Users/mdalchen/work/dpps/code/code-prototypes/calibpipe/calibpipe/tests/data/thoughput/simtel_run501_muon_telescope_transmission_0.8.simtel.gz
2022-09-14 14:32:36,168 INFO [calibpipe.calibpipe-thoughput-calibration.SimTelEventSource] (simteleventsource.prepare_subarray_info): Could not determine telescope from sim_telarray metadata, guessing using builtin lookup-table: 1: GuessingResult(type='LST', name='LST', camera_name='LSTCam', n_mirrors=1, reflector_shape=<ReflectorShape.PARABOLIC: 'PARABOLIC'>)
2022-09-14 14:32:36,181 INFO [calibpipe.calibpipe-thoughput-calibration.MuonCalibrator] (calibrator.__init__): Calibrator class of type: MuonCalibrator has been created.
Calibration method: Undefined
Calibration version: Undefined
2022-09-14 14:33:24,653 INFO [calibpipe.calibpipe-thoughput-calibration] (throughput_calibration.finish): {1: [0.1825708780007825, 0.0542438056821592]}
2022-09-14 14:33:24,653 INFO [calibpipe.calibpipe-thoughput-calibration] (tool.run): Finished: calibpipe-thoughput-calibration
2022-09-14 14:33:24,665 INFO [calibpipe.calibpipe-thoughput-calibration] (tool.write_provenance): Output:

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
Edited by Mykhailo.Dalchenko

Merge request reports

Loading