-
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
Add dir_name to ForceFieldMaker and **task_document_kwargs to from_ase_compatible_result #791
Conversation
…ForceFieldTaskDocument.from_ase_compatible_result
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.
perhaps related? materialsproject/jobflow#570
Having access to |
Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
Just wanted to ask if this PR is ok like that, @janosh ? :) |
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.
apologies, didn't realize this was waiting on me. just 1 minor suggestions re testing
tests/forcefields/test_jobs.py
Outdated
# run the flow or job and ensure that it finished running successfully | ||
responses = run_locally(job, ensure_success=True) | ||
|
||
assert Path(responses[job.uuid][1].output.dir_name).exists() |
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 think we can move this line to one of the existing tests and avoid having to run another 25 relax steps in CI to keep runtime low
@janosh no prob at all :) I adjusted the unit test now. I hope this is ok like that! |
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.
perfect, thank you!
Head branch was pushed to by a user without write access
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #791 +/- ##
==========================================
- Coverage 77.02% 76.91% -0.12%
==========================================
Files 122 122
Lines 9106 9108 +2
Branches 1429 1429
==========================================
- Hits 7014 7005 -9
- Misses 1663 1675 +12
+ Partials 429 428 -1
|
@janosh can you please merge it? :) auto merge was disabled and I had to fix merge conflicts with the main branch! |
…e_compatible_result (materialsproject#791) * added dir_name to ForceFieldRelaxMaker and **task_document_kwargs to ForceFieldTaskDocument.from_ase_compatible_result * Simplify taskdoc update Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com> * added docstring for task_doc_kwargs in force field schemas * changed the unit test for the force_field_task_doc attributes * fix linting --------- Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
I need to write the trajectory of a GAPrelax run into a file and then later access the directories of the files. That's why I added dir_name to ForceFieldRelaxMaker and **task_document_kwargs to ForceFieldTaskDocument.from_ase_compatible_result because as far as I can tell, that hasn't been implemented like that yet.