Skip to content

Commit

Permalink
update chaining util
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammy2211 committed Oct 22, 2024
1 parent 7416500 commit 6eba7c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions autogalaxy/analysis/chaining_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,18 @@ def extra_galaxies_from(
extra_galaxies = result.instance.extra_galaxies.as_model((LightProfile,))

for extra_galaxy_index in range(len(result.instance.extra_galaxies)):
if extra_galaxies[extra_galaxy_index].light is not None:
if extra_galaxies[extra_galaxy_index].bulge is not None:
extra_galaxies[
extra_galaxy_index
].light.centre = result.instance.extra_galaxies[
].bulge.centre = result.instance.extra_galaxies[
extra_galaxy_index
].light.centre
].bulge.centre
if free_centre:
extra_galaxies[
extra_galaxy_index
].light.centre = result.model.extra_galaxies[
].bulge.centre = result.model.extra_galaxies[
extra_galaxy_index
].light.centre
].bulge.centre

else:
extra_galaxies = result.instance.extra_galaxies.as_model(())
Expand Down

0 comments on commit 6eba7c9

Please sign in to comment.