transientskp / pyse

Python Source Extractor
BSD 2-Clause "Simplified" License
11 stars 5 forks source link

Maximum_pixel_method_variance seems to be computed again for each source #24

Closed HannoSpreeuw closed 2 years ago

HannoSpreeuw commented 3 years ago

From a debugging session, it appears that maximum_pixel_method_variance is called for each source that is measured using moments only, i.e. where a Gauss fit is not possible - e.g. with too few pixels above the analysis threshold - or fails.

This seems a considerable waste of CPU time since it involves a 2D integral.

HannoSpreeuw commented 2 years ago

Fixed by #25