-
Dear all, I am trying to use pytraj.pmap to get pairwise distances efficiently. But I figured out that the array was different from using pytraj.distance. My question is how to wrap the result back to the order as if using pytraj.distance without pmap? To be more specific, for example, my trajectory contains 20 frames. For each frame, I am trying to compute 3 pairwise distances. And I am trying to use 5 cores to parallel the computation. The array is obtained by using "result = pt.pmap(pt.distance, traj, mask=mask_lists, n_cores=5 )". Thanks in advanced for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Dear @xywang181: Can you please try: pytraj/tests/test_parallel_pmap/test_pmap.py Lines 245 to 252 in 3d844a4 |
Beta Was this translation helpful? Give feedback.
Dear @xywang181: Can you please try:
pytraj/tests/test_parallel_pmap/test_pmap.py
Lines 245 to 252 in 3d844a4