-
Notifications
You must be signed in to change notification settings - Fork 101
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
Breaking: Unify previous directory Maker
API
#593
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #593 +/- ##
==========================================
- Coverage 75.57% 75.57% -0.01%
==========================================
Files 83 84 +1
Lines 6793 6804 +11
Branches 1001 1002 +1
==========================================
+ Hits 5134 5142 +8
- Misses 1348 1350 +2
- Partials 311 312 +1
|
Sounds like a good change. Do the forcefield makers need a prev_dir? No files are currently written (should we write some logs?) In addition: |
3d25536 shows we could even go a step further and define a That way, it's not up to the PR reviewer to notice violations. |
I think we may want to hold off on the abstract @utf Would be great to get your take here. |
Either way, here's a one-liner to migrate find ./some/directory -type f -name "*.py" -exec sed -i'' -E 's/prev_(vasp|cp2k|amset)_dir/prev_dir/g' {} + Or to replace any find ./some/directory -type f -name "*.py" -exec sed -i'' -E 's/prev_.+_dir/prev_dir/g' {} + |
3d25536
to
47f564c
Compare
Maker
APIMaker
API
As discussed in today's
atomate2
maintainer meeting, it would be great to unify the API betweenMakers
for different codes and forcefields to more easily swap, say, a PBEsol pre-relax maker for a forcefield pre-relax maker and not have to worry about the flow that stitches the makers together passing in an unrecognized keyword likeprev_vasp_dir
into the forcefield maker.