pyMBE-dev / pyMBE

pyMBE provides tools to facilitate building up molecules with complex architectures in the Molecular Dynamics software ESPResSo. For an up-to-date API documention please check our website:
https://pymbe-dev.github.io/pyMBE/pyMBE.html
GNU General Public License v3.0
5 stars 7 forks source link

New implementation for the function define_bonds() #29

Closed pinedaps closed 3 months ago

pinedaps commented 3 months ago

Fixes #20

List of changes:

new function 'create_bond_in_esspresso' is an internal tool for creating the bond_object required for the former function 'define_bond'.

define_bond now takes as arguments:

the argument bond_object was removed because now the new function generates it internally.

Additionally, the script 'test_new_bond_function.py' was created for testing the new implementation. The script generates a short polymer and compares the filtered pymbe dataframe ('bonds') using both version of pyMBE (the current version of pyMBE renamed as 'old_pyMBE.py' and the one with the changes 'pyMBE.py').