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

restarting SABC run from a saved journal file #107

Open
Sebastiano-von-Fellenberg opened this issue May 31, 2022 · 0 comments
Open

restarting SABC run from a saved journal file #107

Sebastiano-von-Fellenberg opened this issue May 31, 2022 · 0 comments

Comments

@Sebastiano-von-Fellenberg
Copy link

Sebastiano-von-Fellenberg commented May 31, 2022

Dear abcpy-team,

I have some trouble restarting the SABC algorithm after it was saved to Journal file. The error message is short so I post it below:

INFO:abcpy.inferences:Broadcasting parameters
INFO:abcpy.inferences:Initial accepted parameters
Traceback (most recent call last):
  File "./ln_like_abcpy.py", line 498, in <module>
    main_spitzer()
  File "./ln_like_abcpy.py", line 496, in main_spitzer
    infer_parameters_spitzer(obs, backend=backend, type='multi', steps=250, n_sample=2000, n_samples_per_param=8, epsilon=30000., epsilon_percentile=None)
  File "./ln_like_abcpy.py", line 439, in infer_parameters_spitzer
    journal = sampler.sample([obs], steps, epsilon, n_sample, n_samples_per_param, beta=2, delta=0.2, v=0.3, full_output=True, ar_cutoff=0.00001, journal_file='/u/sfellenberg/workspace/Python/periodicty/abcpy_runs/spitzer_journal_model2.obj')
  File "/u/sfellenberg/.local/lib/python3.8/site-packages/abcpy/inferences.py", line 1705, in sample
    params_and_dists = self.backend.collect(params_and_dists_pds)
  File "/u/sfellenberg/.local/lib/python3.8/site-packages/abcpy/backends/mpi.py", line 336, in collect
    raise item
AttributeError: Exception occured while calling the map function _accept_parameter: 'NoneType' object has no attribute 'value'
Exception ignored in: <function BackendMPIScheduler.__del__ at 0x151f70766670>
Traceback (most recent call last):
  File "/u/sfellenberg/.local/lib/python3.8/site-packages/abcpy/backends/mpi.py", line 404, in __del__
AttributeError: 'NoneType' object has no attribute 'Finalize'

The error is only raised once the journal_file keyword is specified, without it works fine and it generated the file I specified. The journal file it self shows no obvious corruptions.

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

1 participant