GalSim-developers / GalSim

The modular galaxy image simulation toolkit. Documentation:
http://galsim-developers.github.io/GalSim/
Other
226 stars 107 forks source link

Fix #1302 #1306

Closed rmjarvis closed 3 months ago

rmjarvis commented 3 months ago

Fix an error found by @FedericoBerlfein that amounted to GSObjects missing a method needed to properly duck type as ChromaticObjects in some cases.

Specifically, if an inseparable chromatic object is convolved with a GSObject (in Federico's case, a Pixel), then a bit of code tries to call _fiducial_profile on the separable components, which didn't work, since GSObject didn't have this method. The fix is simply to add a trivial version of that method so the GSObject duck types properly in this context.