-
Notifications
You must be signed in to change notification settings - Fork 15
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
Make ´delete_existing_job´ available to the ´AtomisticGenericJob´ class #196
Conversation
delete_existing_job´ available to the
AtomisticGenericJob´ class
Pull Request Test Coverage Report for Build 849156107
💛 - Coveralls |
Will not get to the review until Monday, but nice catch! |
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 functional code looks perfect; I streamlined the docstring part over in #200 so please review and merge that first.
Not related to your PR, but while we're touching this bit of code: I was unhappy to see that the extra functionality in this child class (a) used not
instead of an explicit is not None
check, and (b) wasn't covered in the unit tests. So once we get this signature fix in, I'll go write a new unit test.
No duplicated docstring text
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.
Looks good to me, but I had a itch to make it a bit cleaner in pyiron_base and open this and this.
This would make this PR not necessary, but I feel the new PR needs a bit more architecture discussion, so I'd suggest we merge this so that @raynol-dsouza gets this work done and then work on the tests in the new PR.
Yeah, I like this. I'm a giant fan of solving the problem as close to the source as possible, but for the sake of immediacy there's no reason to delay merging this more local fix! |
The
AtomisticGenericJob
class inherits from theGenericJobCore
/GenericJob
class. While theGenericJobCore.copy_to()
has the argumentdelete_existing_job
,AtomisticGenericJob.copy_to()
doesn't. Since Protocol jobs create child jobs, the workflows of some of the them rely on an existing child job being deleted, while usingcopy_to()
. Hence, the PR.In addition, PyCharm kept complaining that the
copy_to()
ofAtomisticGenericJob
did not have the same signature as thecopy_to()
ofGenericJobCore
.