Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bonds #41

Merged
merged 10 commits into from
Apr 23, 2024
Merged

Bonds #41

merged 10 commits into from
Apr 23, 2024

Conversation

pinedaps
Copy link
Contributor

Fixes #20

List of changes:

The arguments in the function 'create_bond_in_espresso' reduced to two: the string, 'bond_type' and a dictionary, 'bond_parameters' which should contain the parameters for the corresponding 'bond_type', either harmonic or FENE.

Because of the reduction of arguments in the function 'create_bond_in_espresso', the argument of the functions 'define_bond' and define_default_bond' were reduced in the same way. Additionally, now the function 'define_bond' should be called only once by providing a list of the pair of particle types to be bonded in the argument 'particle_pairs'.

All the tests were updated as well as the tutorials.

Finally, the script 'bond_tests.py' is the unit test for checking that all functions involved in the definition of bonds are working properly.

@pinedaps pinedaps added enhancement New feature or request code quality labels Apr 22, 2024
@pinedaps pinedaps requested a review from pm-blanco April 22, 2024 18:27
@pinedaps pinedaps self-assigned this Apr 22, 2024
…nteractions to new behaviour, adapt parameters files
Copy link
Collaborator

@pm-blanco pm-blanco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pinedaps I did some clean-up in the test, adapted the load_interactions functions to take the same arguments as define_bond when reading from file and I fix a bug when defining FENE bonds. It looks good to me know, if you agree with the changes we can proceed and merge this PR. Thank you for your work!

Copy link
Contributor Author

@pinedaps pinedaps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pm-blanco I just checked your changes and now it looks perfect!

@pm-blanco pm-blanco merged commit a5edd7c into pyMBE-dev:main Apr 23, 2024
1 check passed
@pinedaps pinedaps deleted the bonds branch May 22, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor how bonds are defined in pyMBE
2 participants