From 651ec37ba8efa8fc1ffe3f490182e68bc468969d Mon Sep 17 00:00:00 2001 From: David Luevano <55825613+luevano@users.noreply.github.com> Date: Thu, 12 Dec 2019 23:06:10 -0700 Subject: First working parallelization test --- lj_matrix.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lj_matrix.py') diff --git a/lj_matrix.py b/lj_matrix.py index 55e729c56..5cb1b5a8d 100644 --- a/lj_matrix.py +++ b/lj_matrix.py @@ -188,10 +188,10 @@ def lj_matrix_multiple(mol_data, ljm_data = np.array([lj_matrix(mol, nc, max_len, as_eig, bohr_radius_units) for mol, nc in zip(mol_data, nc_data)]) - if pipe: - pipe.send(ljm_data) - toc = time.perf_counter() printc('\tL-JM calculation took {:.4f} seconds.'.format(toc-tic), 'GREEN') + if pipe: + pipe.send(ljm_data) + return ljm_data -- cgit v1.2.3-54-g00ecf