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

♻️ Initialization of the refactoring of the LAMMPS plugin #35

Merged
merged 73 commits into from
Apr 5, 2022

Conversation

JPchico
Copy link
Collaborator

@JPchico JPchico commented Feb 9, 2022

Refactoring the aiida-lammps plugin so that it is more flexible and in line with what has been developed for the DFT codes.

@chrisjsewell I have created the first PR for the refactoring of the code, I'm pointing it towards the development branch. In principle what one would need to do to ensure that it can be easily merged is to make a new development branch which is a copy from the master branch.

Also, we need to see about taking care of the parts of the plugin which were not maintained before we took over, like the dynaphopy parts. We probably need to remove those classes or make them functional.

Jonathan Chico added 30 commits October 21, 2020 11:11
Added a new more general schema for the base calculation.

Minor modifications to the input_generator
Fixing an issue in which the schema did not have the complete list of fixes for the minimization.

Renamed the "relax" to "minimize" in the schema for clarity.
Added a function for the generation of the dump block.

General improvements for the dosctrings.

Added the automatic tag generation as a function.

Added the capability of creating groups in the structure generation.
Add the capability of having any of the defined computes in the thermo block so that they are printed in the log file.
Adding a helper routine and file to programatically generate the compute strings for the thermo_style.
Make the generation of printing strings for computes for local and global variables automatic
Adding the extra attributes to tage the potential.

Improvements of the dosctrings.
Changes to ensure that the potential can be created via the get_or_create method.

Improvement of docstrings.

Adding any missing dosctrings.
Added the control, potential, and structure to the validation schema.

Several minor format changes.
Adding a new tag to the potential, indicating how the potential was generated.

Small changes to the format.
…e velocity can be read and properly parsed.

Separated the integration from the fixes so that it is more compatible to the current version of the plugin.

Created a function to automatically write the options for the integrations.
Adding a more general way to pass the velocity to the md calculation.
Fix smaller issues in the schema.

Add a function for the schema validation.
Increasing pylint version to 2.6
@JPchico
Copy link
Collaborator Author

JPchico commented Feb 14, 2022

Hello @chrisjsewell ! Should I just handle the PR myself? Or do you want to give it a look?

I think after this I'll work in the workflows themselves. If you have time to look at the dynamic namespaces for the potential stuff would be great, if not let me know where I can check an example so I can try to do it on my own.

Cheers

@JPchico JPchico changed the base branch from development to develop April 1, 2022 11:14
@codecov
Copy link

codecov bot commented Apr 5, 2022

Codecov Report

Merging #35 (5c34a9b) into develop (f119b60) will increase coverage by 4.05%.
The diff coverage is 70.66%.

❗ Current head 5c34a9b differs from pull request most recent head 48e2c0e. Consider uploading reports for the commit 48e2c0e to get more accurate results

@@             Coverage Diff             @@
##           develop      #35      +/-   ##
===========================================
+ Coverage    77.83%   81.89%   +4.05%     
===========================================
  Files           37       30       -7     
  Lines         2369     2336      -33     
===========================================
+ Hits          1844     1913      +69     
+ Misses         525      423     -102     
Flag Coverage Δ
pytests 81.89% <70.66%> (+4.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiida_lammps/__init__.py 100.00% <ø> (ø)
aiida_lammps/calculations/lammps/base.py 0.00% <0.00%> (ø)
aiida_lammps/parsers/lammps/lammps_parser.py 0.00% <0.00%> (ø)
aiida_lammps/utils.py 0.00% <0.00%> (ø)
aiida_lammps/data/potential.py 93.75% <60.00%> (ø)
aiida_lammps/calculations/lammps/__init__.py 67.71% <66.66%> (+6.56%) ⬆️
aiida_lammps/data/pot_plugins/reaxff.py 90.62% <66.66%> (+0.14%) ⬆️
aiida_lammps/parsers/lammps/md.py 89.65% <66.66%> (+0.18%) ⬆️
aiida_lammps/parsers/lammps/md_multi.py 92.20% <66.66%> (+0.10%) ⬆️
aiida_lammps/parsers/lammps/force.py 92.72% <75.00%> (ø)
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f119b60...48e2c0e. Read the comment docs.

Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

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

All sorted @JPchico!

I made a few extra changes 😅:
dropped all the dynaphopy code, moved the tests out of the package, and fixed the documentation build

@chrisjsewell chrisjsewell changed the title Initialization of the refactoring of the LAMMPS plugin ♻️ Initialization of the refactoring of the LAMMPS plugin Apr 5, 2022
@chrisjsewell chrisjsewell merged commit 92ecec3 into aiidaplugins:develop Apr 5, 2022
@JPchico
Copy link
Collaborator Author

JPchico commented Apr 6, 2022

Fantastic @chrisjsewell ! that is very nice news! I'll check it ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants