Closed Jammy2211 closed 1 year ago
Okay, so the function save_attributes_for_aggregator
is actually called and the appropriate .pickle files are output.
It is simply the loading of these things via the aggregator that needs to be implemented.
So digging into this it's because an aggregator aggregates searches not analyses. We can add additional metadata to each analysis to allow it to aggregate on those instead.
It looks like the aggegator expects: .metadata .complete pickles/model.pickle
probably more...
It is worth checking if .metadata
is still used for anything, or a remnant of an old implementation,
It's for the aggregator basically
The .complete
is whether the non linear search is complete as well, so should not be on a per-analysis basis but for the overall search.
The pickles
folder requires more thought, some pickles
are probably on a per-analysis level (e.g. the data.pickle
is the data fitted by each Analysis
). Something like the model.pickle
is probably the same for all Analysis
objects though? Or does it change depending on things like the with_free_parameters
thing we do with Analysis
objects?
The following example script shows that general database functionality works for a normal Analysis object:
https://github.com/Jammy2211/autofit_workspace_test/blob/main/database/directory/general.py
The following script shows that for a combined analysis, it does not work.
https://github.com/Jammy2211/autofit_workspace_test/blob/main/database/directory/general.py
save_attributes_for_aggregator
The function
save_attributes_for_aggregator
is not called for aCombinedAnalysis
and therefore the custom.pickle
files are not output (e.g.data.pickle
).The main functionality that needs to be implemented is therefore associated with this comment at the end of the script: