-
Notifications
You must be signed in to change notification settings - Fork 178
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
update: add a new option of absolute volume in /dpgen/dpgen/auto_test/EOS.py #741
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #741 +/- ##
==========================================
+ Coverage 33.91% 34.84% +0.93%
==========================================
Files 93 93
Lines 16562 16613 +51
==========================================
+ Hits 5617 5789 +172
+ Misses 10945 10824 -121
Continue to review full report at Codecov.
|
@@ -24,6 +24,8 @@ def __init__(self, | |||
self.vol_start = parameter['vol_start'] | |||
self.vol_end = parameter['vol_end'] | |||
self.vol_step = parameter['vol_step'] | |||
parameter['vol_abs'] = parameter.get('vol_abs', False) |
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.
set_default
is better than get
.
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.
get
is applied in other parts of dpgen. To keep consistency, I think it's ok.
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.
If you mean the other parts in this file, indeed I don't think they are ok. Here set_default
is faster and more concise. I can approve this PR though.
…/EOS.py (deepmodeling#741) * update: add a new option of absolute volume in ./dpgen/auto_test/EOS.py * update: add doc in /dpgen/doc/toymodels/ * update: change the description for eos, change the doc in /dpgen/doc/toymodels/ * update: change the notice of absolute volume from print into dlog.info
update: add a new option of absolute volume in /dpgen/dpgen/auto_test/EOS.py