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 an error remind in dpgen_fp #903

Merged
merged 3 commits into from
Aug 27, 2022
Merged

add an error remind in dpgen_fp #903

merged 3 commits into from
Aug 27, 2022

Conversation

goodluck-xyz
Copy link
Contributor

Describe in detail what's wrong with the INCAR in the FADs #898.
The accurate error reason help the user solve the problem as soon as possible.

Signed-off-by: Yunfan Xu 54764135+goodluck-xyz@users.noreply.github.com

Describe in detail what's wrong with the INCAR in the FADs #898.


Signed-off-by: Yunfan Xu <54764135+goodluck-xyz@users.noreply.github.com>
@HuangJiameng
Copy link
Collaborator

Please set a proper title to briefly describe your PR.

@goodluck-xyz goodluck-xyz changed the title Update run.py Update dpgen/generator/run.py to Aug 22, 2022
@goodluck-xyz goodluck-xyz changed the title Update dpgen/generator/run.py to Update dpgen/generator/run.py Aug 22, 2022
@goodluck-xyz goodluck-xyz changed the title Update dpgen/generator/run.py add an error remind in dpgen_fp Aug 22, 2022
@njzjz
Copy link
Member

njzjz commented Aug 22, 2022

Please resolve conflicts.

Signed-off-by: Yunfan Xu <54764135+goodluck-xyz@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2022

Codecov Report

Merging #903 (a05e1d6) into devel (5dc7c1b) will decrease coverage by 0.00%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##            devel     #903      +/-   ##
==========================================
- Coverage   38.14%   38.14%   -0.01%     
==========================================
  Files          99       99              
  Lines       17767    17770       +3     
==========================================
+ Hits         6778     6779       +1     
- Misses      10989    10991       +2     
Impacted Files Coverage Δ
dpgen/generator/run.py 62.47% <33.33%> (-0.04%) ⬇️

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

@@ -3243,6 +3243,9 @@ def post_fp_vasp (iter_index,
assert(use_ele_temp)
ele_temp = job_data['ele_temp']
all_te.append(ele_temp)
elif len(_sys) >= 2:
raise RuntimeError("The vasp parameter NSW should be set as 1")
icount+=1
Copy link
Member

Choose a reason for hiding this comment

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

Line 3248 will not be executed when line 3247 raises an error. So I don't know the role of line 3248.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I misunderstand the function RuntimeError(). The line 3248 should be removed.

I misunderstood the function RuntimeError(). The previous line 3248 is unnecessary.  It should be removed.

Signed-off-by: Yunfan Xu <54764135+goodluck-xyz@users.noreply.github.com>
@wanghan-iapcm wanghan-iapcm merged commit d56761e into deepmodeling:devel Aug 27, 2022
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.

5 participants