-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[minor] Opt in hash for pythonfunction (#1358)
* Introduce a flag for _not_ mangling the name of wrapped function jobs * Don't even override with function name, just keep the given name * Add comment on the private var * Indent and isolate the entire mangling block Then fall back on super() otherwise, to further clarify the intent of the mangling * Change the mangling default to false on the job class * Maintain (now optional) mangling behaviour on the wrapper * Update test * Refactor: rename private var * Clarify intent to future devs * Allow a name to be passed to the function wrapper job * Update test * Rename test * Update pyiron_base/jobs/flex/pythonfunctioncontainer.py Co-authored-by: Jan Janssen <[email protected]> * Fix early return logic That we broke by committing the readability suggestion * Use a more descriptive name * fix formatting * Format black * 🐛 finish renaming attribute * Format black * Cover the found-save branch * Never re-save existing jobs --------- Co-authored-by: Jan Janssen <[email protected]> Co-authored-by: pyiron-runner <[email protected]>
- Loading branch information
1 parent
3b56972
commit 8d187c8
Showing
3 changed files
with
87 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters