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

add arguments for lammps revise_template #1015

Merged
merged 11 commits into from
Nov 11, 2022

Conversation

HuangJiameng
Copy link
Collaborator

For #782 , WIP.
@tuoping @taipinghu @Vibsteamer please give some advice on the arguments' introduction, thanks!

dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
dpgen/generator/arginfo.py Show resolved Hide resolved
dpgen/generator/arginfo.py Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Nov 5, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 38.87%. Comparing base (5ae6b2f) to head (d2ca359).
Report is 223 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #1015      +/-   ##
==========================================
+ Coverage   38.82%   38.87%   +0.05%     
==========================================
  Files          99       99              
  Lines       17977    17992      +15     
==========================================
+ Hits         6980     6995      +15     
  Misses      10997    10997              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -160,6 +188,8 @@ def model_devi_lmp_args() -> List[Argument]:
doc_model_devi_clean_traj = 'If type of model_devi_clean_traj is bool type then it denote whether to clean traj folders in MD since they are too large. If it is Int type, then the most recent n iterations of traj folders will be retained, others will be removed.'
doc_model_devi_merge_traj = 'If model_devi_merge_traj is set as True, only all.lammpstrj will be generated, instead of lots of small traj files.'
doc_model_devi_nopbc = 'Assume open boundary condition in MD simulations.'
doc_model_devi_plumed = '' # looking forward to update
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, I'm not sure if this parameter is functional at all. Because to run model_devi with plumed, we use "template", which is a completely independent setting and is not at all affected by this parameter.

@@ -160,6 +188,8 @@ def model_devi_lmp_args() -> List[Argument]:
doc_model_devi_clean_traj = 'If type of model_devi_clean_traj is bool type then it denote whether to clean traj folders in MD since they are too large. If it is Int type, then the most recent n iterations of traj folders will be retained, others will be removed.'
doc_model_devi_merge_traj = 'If model_devi_merge_traj is set as True, only all.lammpstrj will be generated, instead of lots of small traj files.'
doc_model_devi_nopbc = 'Assume open boundary condition in MD simulations.'
doc_model_devi_plumed = '' # looking forward to update
doc_model_devi_plumed_path = '' # looking forward to update
Copy link
Collaborator

Choose a reason for hiding this comment

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

Frankly, I've never used this parameter. I don't even know this parameter. Seems useless.

Copy link
Collaborator

@Vibsteamer Vibsteamer left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, lost in fall
Best

dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
@HuangJiameng
Copy link
Collaborator Author

Sorry for the delay, lost in fall Best

Thanks! Now it's done. Reviews are welcomed. It can be merged if nothing is wrong.

@njzjz
Copy link
Member

njzjz commented Nov 9, 2022

Could you check if new parameters work for examples/run/dp-lammps-enhance_sampling/param.json?

@HuangJiameng
Copy link
Collaborator Author

Could you check if new parameters work for examples/run/dp-lammps-enhance_sampling/param.json?

DONE

dpgen/generator/arginfo.py Outdated Show resolved Hide resolved
@wanghan-iapcm wanghan-iapcm merged commit 2765fb8 into deepmodeling:devel Nov 11, 2022
@njzjz njzjz linked an issue Jul 6, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

assert(system.formula == self.formula) AssertionError
6 participants