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

Issue loading samples summary model #1023

Open
Jammy2211 opened this issue Jul 22, 2024 · 1 comment
Open

Issue loading samples summary model #1023

Jammy2211 opened this issue Jul 22, 2024 · 1 comment
Assignees

Comments

@Jammy2211
Copy link
Collaborator

If I run the following test script:

https://github.com/Jammy2211/autolens_workspace_test/blob/main/scripts/database/scrape/general.py

I get the following error:

<autofit.non_linear.search.nest.dynesty.search.static.DynestyStatic object at 0x7fac97e2f520>
Traceback (most recent call last):
  File "/mnt/c/Users/Jammy/Code/PyAuto/autolens_workspace_test/scripts/database/scrape/general.py", line 158, in <module>
    instance = samples_summary.max_log_likelihood()
  File "/mnt/c/Users/Jammy/Code/PyAuto/PyAutoFit/autofit/non_linear/samples/interface.py", line 28, in wrapper
    vector = func(self, *args, **kwargs)
  File "/mnt/c/Users/Jammy/Code/PyAuto/PyAutoFit/autofit/non_linear/samples/interface.py", line 89, in max_log_likelihood
    self.paths if sample.is_path_kwargs else self.names
  File "/mnt/c/Users/Jammy/Code/PyAuto/PyAutoFit/autofit/non_linear/samples/interface.py", line 64, in paths
    self._paths = self.model.all_paths
AttributeError: 'NoneType' object has no attribute 'all_paths'

The SamplesSummary object is not loading the model from model.json correctly.

@rhayes777
Copy link
Owner

I think the solution to this is to put the model back in the samples summary. We could consider having parallel samples summaries - one that the user sees and another that the system uses

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