On my desktop with our current mkidpipeline test 23% of the program runtime and the overwhelming majority of the wavecal runtime is spent in get_flag here. The situation appears to be much worse when run on wheatley.
I have a suspicion that this is accidentally quadratic in the number of pixels
https://github.com/MazinLab/MKIDPipeline/blob/2dbf0dc3199afae361775ce5304ff4e648347889/mkidpipeline/steps/wavecal.py#L2711C70-L2711C78
On my desktop with our current mkidpipeline test 23% of the program runtime and the overwhelming majority of the wavecal runtime is spent in
get_flaghere. The situation appears to be much worse when run on wheatley.I have a suspicion that this is accidentally quadratic in the number of pixels
https://github.com/MazinLab/MKIDPipeline/blob/2dbf0dc3199afae361775ce5304ff4e648347889/mkidpipeline/steps/wavecal.py#L2711C70-L2711C78