The problem, is that in the fit performed using model_2 (named "source_pix[2]_light[fixed]_mass[total]_source[pix]") in the pipeline, the bulge and disk are no longer linear light profiles. They are instead ordinary light profiles -- their type has changed!
The problem is due to how I decided to structure the light profile package in PyAutoGalaxy:
After inspecting the .identifer file of these fits, it looks like the path to the light profile is not accounted for by PyAutoFit, hence why it does not know which type of light profile to pass and why it is changing in these fits.
So, the question is, should I change the PyAutoGalaxy API so that the class names of light profiles are always unique (e.g. Sersic and SersicLinear)? Which is a bit of an eye-sore.
Or, can we update PyAutoFit to account for path when prior passing?
I am running the following autolens pipeline:
https://github.com/Jammy2211/autolens_workspace_test/blob/main/slam/integration/source_pix/mass_total/linear_parametric.py
My intention is for the two lens galaxy light profiles to be linear light profiles, as specified by this code (note the
lp_linear
):The fit runs as expected, with linear light profiles used for the
lens_bulge
and lens_disk`.I then run a second pipeline, where the
lens_bulge
and lens_disk` are setup via prior passing:The problem, is that in the fit performed using
model_2
(named"source_pix[2]_light[fixed]_mass[total]_source[pix]"
) in the pipeline, thebulge
anddisk
are no longer linear light profiles. They are instead ordinary light profiles -- their type has changed!The problem is due to how I decided to structure the light profile package in PyAutoGalaxy:
https://github.com/Jammy2211/PyAutoGalaxy/tree/main/autogalaxy/profiles/light
The linear light profiles (e.g.
lp_linear
) are in the folderlinear
whereas the ordinary light profiles are in the folderstandard
.Note that light profiles in both folders, although different, has the same names, like the
Sersic
profiles used in this example:https://github.com/Jammy2211/PyAutoGalaxy/blob/main/autogalaxy/profiles/light/linear/sersic.py https://github.com/Jammy2211/PyAutoGalaxy/blob/main/autogalaxy/profiles/light/standard/sersic.py
After inspecting the
.identifer
file of these fits, it looks like the path to the light profile is not accounted for by PyAutoFit, hence why it does not know which type of light profile to pass and why it is changing in these fits.So, the question is, should I change the PyAutoGalaxy API so that the class names of light profiles are always unique (e.g.
Sersic
andSersicLinear
)? Which is a bit of an eye-sore.Or, can we update PyAutoFit to account for path when prior passing?