Could someone kindly remind me how the “slot_” magic works?
When the extended shape measurements were called
ext_shapeHSM_HsmSourceMoments
ext_shapeHSM_HsmSourceMoments_psf
I had code like this:
I_xx, I_xy, I_yy = cat.get(slot_shape+'_xx'), cat.get(slot_shape+'_xy'), cat.get(slot_shape+'_yy')
that magically worked by calling slot_shape='slot_Shape'
and slot_shape='slot_Shape_psf'
.
But now that they are named:
ext_shapeHSM_HsmPsfMoments
ext_shapeHSM_HsmSourceMoments
is there any way to rewrite the above code so it still works. I tried definining the slot_Shape_psf
, but that actually broke the thing that used to work which was saying slot_Shape_xx
and getting that magically expanded.