Skip to content

restarting SABC run from a saved journal file #107

@Sebastiano-von-Fellenberg

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions