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

make more examples pass argument tests #870

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Aug 14, 2022

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Aug 14, 2022

Codecov Report

Merging #870 (2f59477) into devel (cb926e1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            devel     #870   +/-   ##
=======================================
  Coverage   38.11%   38.12%           
=======================================
  Files          99       99           
  Lines       17780    17782    +2     
=======================================
+ Hits         6777     6779    +2     
  Misses      11003    11003           
Impacted Files Coverage Δ
dpgen/generator/arginfo.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


args = [
Argument("ecut", int, optional=False, doc=doc_ecut),
Argument("ediff", float, optional=False, doc=doc_ediff),
Argument("kspacing", float, optional=False, doc=doc_kspacing),
Argument("mixingweight", float, optional=False, doc=doc_mixingweight),
Argument("kspacing", [float, int], optional=False, doc=doc_kspacing),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why kspacing can be int?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not clear to me if the following example is a typo or not. I am not familiar with siesta.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

It should be "kspacing" : 1.0,

@HuangJiameng
Copy link
Collaborator

Since these examples are modified to pass the current argument tests, are they still available for dp1.x?

@njzjz
Copy link
Member Author

njzjz commented Aug 15, 2022

I don't think there are any differences in DP-GEN parameters between dp1.x and dp2.x.

However, it should be a good idea to upgrade all DeePMD-kit parameters from 1.x to 2.x.

@wanghan-iapcm wanghan-iapcm merged commit d55d400 into deepmodeling:devel Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants