Batch particle properties update#5124
Conversation
4dcba77 to
986ee23
Compare
|
Overall looks good to me. I'm currently working on this PR to deduplicate some of the common code. Is there a particular reason to prefer the current syntax p.update({"bonds": new_bonds, "pos": [1, 2, 3]})over the following syntax? p.update(bonds=new_bonds, pos=[1, 2, 3])The latter is closer to the syntax of |
|
I see: the |
986ee23 to
69866d8
Compare
Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
69866d8 to
e1b0c7e
Compare
Until now the
update()method of theParticleHandleclass just sequentially set its parameters to new values, making one expensive update call for each new parameter. Now a batch update is performed.