Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix peak_time estimation in FlashCamExtractor #2333

Merged
merged 8 commits into from May 17, 2023

Conversation

clara-escanuela
Copy link
Contributor

@clara-escanuela clara-escanuela commented May 15, 2023

After the extractor optimization, I did not check timing performance again as I only made a few changes in the code. But one of these very small changes caused a problem in the time reconstruction. The unit tests did not identify it because they were not sensitive enough. By adding a new toymodel with a time gradient we can find timing bugs better. I checked the test with the previous implementation (with that wrong line of code) and the test fails (as expected). In fact, the same test with the standard toymodel provided (random true times) passes even when time reconstruction is wrong. I think a further test can also be added to other extractors, to avoid similar problems.

@clara-escanuela clara-escanuela linked an issue May 16, 2023 that may be closed by this pull request
@maxnoe maxnoe changed the title FlashCamExtractor bug Fix peak_time estimation in FlashCamExtractor May 16, 2023
@maxnoe maxnoe added this to the v0.19.2 milestone May 16, 2023
ctapipe/image/extractor.py Outdated Show resolved Hide resolved
@maxnoe
Copy link
Member

maxnoe commented May 16, 2023

Before:
flashcam_image png

After:
flashcam_image_fixed

ctapipe/image/extractor.py Outdated Show resolved Hide resolved
Co-authored-by: Maximilian Linhoff <maximilian.linhoff@tu-dortmund.de>
docs/changes/2333.bug.rst Outdated Show resolved Hide resolved
clara-escanuela and others added 2 commits May 16, 2023 11:56
Co-authored-by: Maximilian Linhoff <maximilian.linhoff@tu-dortmund.de>
@maxnoe maxnoe requested review from Tobychev and kosack May 16, 2023 10:14
@maxnoe
Copy link
Member

maxnoe commented May 16, 2023

@Tobychev @kosack

Could we get a second quick review here? We need to have this release to restart processing on the grid

@maxnoe maxnoe requested a review from LukasNickel May 16, 2023 14:47
@maxnoe maxnoe merged commit e2eb2ae into cta-observatory:main May 17, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Peak times of FlashCam reconstructor seem off
3 participants