-
Notifications
You must be signed in to change notification settings - Fork 175
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
add an error remind in dpgen_fp #903
Conversation
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>
Please set a proper title to briefly describe your PR. |
Please resolve conflicts. |
Signed-off-by: Yunfan Xu <54764135+goodluck-xyz@users.noreply.github.com>
Codecov Report
@@ 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
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
dpgen/generator/run.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
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