Throughput tests are failing with the ctapipe 0.20.0
Summary
EventSource.from_config()
has been removed, see ctapipe
#2258.
For some reason, it has been used in throughput calibrator.
2023-09-12 12:59:48,425 ERROR [calibpipe.calibpipe-throughput-calibration] (tool.run): Caught unexpected exception: type object 'EventSource' has no attribute 'from_config'
Traceback (most recent call last):
File "/root/micromamba/envs/cta-dev/lib/python3.9/site-packages/ctapipe/core/tool.py", line 414, in run
self.setup()
File "/root/micromamba/envs/cta-dev/lib/python3.9/site-packages/calibpipe/tools/throughput_calibrator.py", line 76, in setup
self.eventsource = EventSource.from_config(parent=self)
AttributeError: type object 'EventSource' has no attribute 'from_config'
Steps to reproduce
Relaunch tests in the CI.
What is the expected correct behavior?
EventSource.from_config()
shall not be used.
Relevant logs and/or screenshots
See e.g. https://gitlab.cta-observatory.org/cta-computing/dpps/calibrationpipeline/calibpipe/-/jobs/131842
Environment
- Version used: py3.9, 3.10
- Operation System: almalinux 9
Max from ctapipe
#2258:
EventSource.from_config is not needed anymore (and since quite some time), since EventSource(parent=self) "just works™".
Edited by Mykhailo.Dalchenko