-
Notifications
You must be signed in to change notification settings - Fork 94
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
Allow prv_dir to be used more in defect wf #585
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #585 +/- ##
==========================================
- Coverage 75.53% 75.51% -0.03%
==========================================
Files 83 83
Lines 6790 6792 +2
Branches 1002 1002
==========================================
Hits 5129 5129
- Misses 1349 1352 +3
+ Partials 312 311 -1
|
src/atomate2/common/flows/defect.py
Outdated
@@ -348,8 +350,8 @@ def make( | |||
) | |||
|
|||
@abstractmethod | |||
def structure_from_prv(self, previous_dir: str) -> Structure: | |||
"""Copy the output structure from previous directory. | |||
def sc_entry_and_locpot_from_prv(self, previous_dir: str) -> Structure: |
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.
The returned object here should be ComputedStructureEntry
and Locpot
as docstring indicates, no longer Structure
?
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.
correct
Completing Allow Previous Bulk Calculations Features
Old code:
This PR fixes those issues and adds testing for restarting from existing bulk SC calculation (which is the optimal way to run many defects based on the same bulk SC)