diff options
author | David Luevano <55825613+luevano@users.noreply.github.com> | 2019-12-12 23:06:10 -0700 |
---|---|---|
committer | David Luevano <55825613+luevano@users.noreply.github.com> | 2019-12-12 23:06:10 -0700 |
commit | 651ec37ba8efa8fc1ffe3f490182e68bc468969d (patch) | |
tree | f3ecbe091555be26568dbba36fd5c5878b19ca47 /c_matrix.py | |
parent | 91bd79feefa7b1bcfae79b4efd39955a6e301391 (diff) |
First working parallelization test
Diffstat (limited to 'c_matrix.py')
-rw-r--r-- | c_matrix.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c_matrix.py b/c_matrix.py index 75cc4d8a2..4de711a1b 100644 --- a/c_matrix.py +++ b/c_matrix.py @@ -170,10 +170,10 @@ def c_matrix_multiple(mol_data, cm_data = np.array([c_matrix(mol, nc, max_len, as_eig, bohr_radius_units) for mol, nc in zip(mol_data, nc_data)]) - if pipe: - pipe.send(cm_data) - toc = time.perf_counter() printc('\tCM calculation took {:.4f} seconds.'.format(toc - tic), 'GREEN') + if pipe: + pipe.send(cm_data) + return cm_data |