Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi analysis not returning correct list of results #34

Open
Jammy2211 opened this issue Jul 17, 2022 · 2 comments
Open

Multi analysis not returning correct list of results #34

Jammy2211 opened this issue Jul 17, 2022 · 2 comments
Assignees

Comments

@Jammy2211
Copy link
Owner

The following script:

https://github.com/Jammy2211/autogalaxy_workspace/blob/release/scripts/multi/modeling/advanced/wavelength_dependence.py

Gives the following error:

<autofit.mapper.model.ModelInstance object at 0x7f7df750cfd0>
<autofit.mapper.model.ModelInstance object at 0x7f7df750cf40>
Traceback (most recent call last):
  File "scripts/multi/./modeling/advanced/wavelength_dependence.py", line 246, in <module>
    plane=result.max_log_likelihood_plane, grid=result.grid
AttributeError: 'Result' object has no attribute 'max_log_likelihood_plane'

The problem is that the result_list returned by the fit:

result_list = search.fit(model=model, analysis=analysis)

Does not contain instances of the ResultImaging class in PyAutoGalaxy I think it is just genric PyAutoFit result objects?

The error is raised because an attribute of a ResultImaging is called:

for result in result_list:

    plane_plotter = aplt.PlanePlotter(
        plane=result.max_log_likelihood_plane, grid=result.grid
    )
@rhayes777
Copy link
Collaborator

Is this still an issue?

@Jammy2211
Copy link
Owner Author

Yep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants