mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2024-11-13 18:13:31 +01:00
ZH: Enable multiprocessing in reconstruction
This commit is contained in:
parent
3c99ac7118
commit
0ac1deff34
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,7 @@ from mpl_toolkits.mplot3d import Axes3D # required for projection='3d' on old ma
|
|||
import numpy as np
|
||||
from os import path
|
||||
import pickle
|
||||
import joblib
|
||||
|
||||
from earsim import REvent
|
||||
from atmocal import AtmoCal
|
||||
|
@ -69,7 +70,8 @@ if __name__ == "__main__":
|
|||
ev.antennas[i].t += total_clock_time
|
||||
|
||||
N_X, Xlow, Xhigh = 23, 100, 1200
|
||||
res = rit.reconstruction(ev, outfile=fig_subdir+'/fig.pdf', slice_outdir=fig_subdir+'/', Xlow=Xlow, N_X=N_X, Xhigh=Xhigh)
|
||||
with joblib.parallel_backend("loky"):
|
||||
res = rit.reconstruction(ev, outfile=fig_subdir+'/fig.pdf', slice_outdir=fig_subdir+'/', Xlow=Xlow, N_X=N_X, Xhigh=Xhigh)
|
||||
|
||||
## Save a pickle
|
||||
with open(pickle_fname, 'wb') as fp:
|
||||
|
|
Loading…
Reference in a new issue