diff --git a/BayesValidRox/PyLink/PyLinkForwardModel.py b/BayesValidRox/PyLink/PyLinkForwardModel.py index 4822748729f620298bf2af2f7212adffb442f392..ed6f559d8e56abf06ca7cd3279be42b61b280867 100644 --- a/BayesValidRox/PyLink/PyLinkForwardModel.py +++ b/BayesValidRox/PyLink/PyLinkForwardModel.py @@ -253,9 +253,10 @@ class PyLinkForwardModel: # Parallel runs with multiprocessing with multiprocessing.Pool(nrCPUs) as p: - results = list(tqdm.tqdm(p.imap(self.run_forwardmodel, zip(CollocationPoints,[prevRun_No+i for i in range(P)], [keyString]*P)), + group_results = list(tqdm.tqdm(p.imap(self.run_forwardmodel, zip(CollocationPoints,[prevRun_No+i for i in range(P)], [keyString]*P)), total=P)) print("\n") + results = [group_results[NofE][1] for NofE in range(P)] # Save time steps or x-values x_values = results[0][0] TotalOutputs["x_values"] = x_values