The current conversion of ngmix profile to a GSObject has a subtle bug - the shape parameters are used to shear the circular object after profile creation (like a GSObject normally would) instead of being used in the initial creation of a GMixCM object (whose shape parameter cm_T is not circular!). We simply need to pass (g1,g2) to cm_params in the creation of a BalGMixCM object to fix this.
This resolves ~90% of the image residual discrepancy that Katie has seen in her tests.
The current conversion of
ngmix
profile to aGSObject
has a subtle bug - the shape parameters are used to shear the circular object after profile creation (like aGSObject
normally would) instead of being used in the initial creation of aGMixCM
object (whose shape parametercm_T
is not circular!). We simply need to pass(g1,g2)
tocm_params
in the creation of aBalGMixCM
object to fix this.This resolves ~90% of the image residual discrepancy that Katie has seen in her tests.