Closed shenkev closed 2 years ago
Hi @shenkev , sorry for the delay. One thing that you need to do (as described in the example notebook), is to call all julia functions once, such that necessary pre-compilation is performed, as otherwise problems will occur when using multiprocessing. This can be done e.g. by inserting a line distance(model(gt_par), model(gt_par))
prior to the main pyABC routine.
With that addition, your code runs fine for me.
closing due to non-response. feel free to re-open if issue persists.
I'm following the example: https://pyabc.readthedocs.io/en/latest/examples/using_julia.html?highlight=julia
I've put the code in the example in a python file test.py shown below. SIR.jl is exactly the same as in the example. Running test.py with SingleCoreSampler works. But MulticoreEvalParallelSampler causes a crash (bottom of issue).
Why is this?
I can successfully
Note: I'm having compatibility issues between Julia and Python and used the recommended solution on the PyJulia webpage:
Could this be the reason?
Full error log here error.txt
Shortened version below,