You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the HAWC collaboration meeting in Puerto Vallarta, it was noted that 3ML analysis was much slower with respect gammapy analysis. Quentin looked into possible bottleneck of the HAL code. Here is a summary (verbatim from him):
The following should be moved to a function that return npred for each source so it can be cached if its parameters do not change, it seems that only the psf interpolation is cached
not sure to understand how the parameter change property is used but it could differentiate spatial and spectral parameters
because if only spectral parameters change it is not necessary to repeat the PSF convolution, one can rescale the cached value with a different weight in each energy bin. (edited)
Before starting changing the code, we should keep track of our progresses. I suggest to set up a "catalog-style" example of one ROI where the convergence/speed is problematic, and work our way from there.
Feature Request
During the HAWC collaboration meeting in Puerto Vallarta, it was noted that 3ML analysis was much slower with respect gammapy analysis. Quentin looked into possible bottleneck of the HAL code. Here is a summary (verbatim from him):
https://github.com/search?q=repo%3AthreeML/hawc_hal%20point_source_image&type=code
hawc_hal/hawc_hal/convolved_source/convolved_point_source.py
Line 59 in ce74038
fast
hawc_hal/hawc_hal/HAL.py
Line 209 in ce74038
hawc_hal/hawc_hal/HAL.py
Lines 215 to 217 in ce74038
hawc_hal/hawc_hal/psf_fast/psf_convolutor.py
Lines 24 to 25 in ce74038
hawc_hal/hawc_hal/HAL.py
Lines 999 to 1030 in ce74038
hawc_hal/hawc_hal/HAL.py
Lines 974 to 992 in ce74038
hawc_hal/hawc_hal/HAL.py
Line 966 in ce74038
hawc_hal/hawc_hal/HAL.py
Lines 1032 to 1045 in ce74038
hawc_hal/hawc_hal/HAL.py
Line 844 in ce74038
hawc_hal/hawc_hal/HAL.py
Line 972 in ce74038
because if only spectral parameters change it is not necessary to repeat the PSF convolution, one can rescale the cached value with a different weight in each energy bin. (edited)
hawc_hal/hawc_hal/convolved_source/convolved_extended_source.py
Line 133 in ce74038
The text was updated successfully, but these errors were encountered: