Closed Jammy2211 closed 4 years ago
I've pushed a fix that resolves this issue.
Before we used strings to address an object in the model: e.g. "lens_galaxies_lens"
Would be address the galaxy called lens in the lens_galaxies collection.
Now we use tuples instead. e.g. ("lens_galaxies", "lens")
This avoid ambiguity. I've updated AutoFit to 0.25.0 and made changes to AutoLens.
Note that there is still an issue that seems to be a problem with the existing code in the HyperPhase: AttributeError: 'MultiNest' object has no attribute 'constant'
This does not seem to have fixed the issue. That is, for a phase's results, variable.hyper_galaxy is None after passing. This is seen in lens_only/lens_x1_hyper_galaxy.py integration test when passing the hyper galaxy using variable.
I have fixed the passing of a 'constant' result
Fixed.
The HyperGalaxyPhase appears functional, with the first galaxy (that had an image in the previous phase) successfully having its parameter space sampled.
This is shown in the integration test found test/integration/test/lens_only/lens_x1_galaxy_hyper.py and test/integration/test/lens_and_source/lens_mass_x1_source_x1_hyper.py.
However, once the phase has run the code is not passing the results to the results, copy, e.g. this part of the code:
The error message is as follows: