Closed matroxel closed 4 years ago
@masayamn
PR coming. But in the meanwhile, the following workaround might be acceptable if this is blocking anything:
sed = galsim.SED('CWW_E_ext.sed', 'A', 'flambda')
knots = galsim.RandomKnots(10, half_light_radius=1.3, flux=100)
gal = galsim.ChromaticObject(knots) * sed
This is functionally equivalent, and avoids the bug.
In the new release, updates to the RandomWalk object seem to have broken something related to SEDs. When applying an SED to a RandomWalk or RandomKnots object, the code fails with:
galsim.errors.GalSimIncompatibleValuesError: profile must be a GSObject Values {}
Example:
import galsim sed = galsim.SED('CWW_E_ext.sed', 'A', 'flambda') knots = galsim.RandomKnots(10, half_light_radius=1.3, flux=100) gal = knots * sed