Closed AstroAaron closed 5 months ago
The problem (for this bug and the previous) is that these things:
mass_0=tracer.planes[0].galaxies[0].mass,
mass_1=tracer.planes[0].galaxies[1].mass,
shear=tracer.planes[0].galaxies[0].shear,
Are not af.Model
objects but just instances of the PowerLaw
and ExternalShear
class.
SLaM are modeling pipelines so expect that everything will be PyAutoFit objects.
I think you want to do something like:
mass_0_model = af.Model(al.mp.PowerLaw)
mass_0_model.centre = mass_0.centre
... repeat for all parameters (ell comps, einstein_radius, slope) and for mass_1 and shear
Thank you for the fix. It started the source_pix
pipeline without issue.
The problem (for this bug and the previous) is that these things:
Regarding the previous problem: not using positions=positions
in positions_likelihood=source_lp_results.last.positions_likelihood_from()
did return the same error as in 270, even with your suggestion above.
Hello again, using the code from my previous run (#270) I get the following error when the slam pipeline executes
source_pix
:I have two lenses masses modelled each as a
PowerLaw
. The chaining_util part of the script looks like this:And works for the normal full run without the fixed tracer as input.