Skip to content
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

Delayed execution in pyiron_base - for wrap_python_function() and wrap_executable() #1508

Merged
merged 37 commits into from
Jul 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
af10665
Merge remote-tracking branch 'refs/remotes/origin/executablecontainer…
jan-janssen Jul 3, 2024
c37e61e
Implement delayed function call
jan-janssen Jul 3, 2024
21997c5
Add unit tests
jan-janssen Jul 3, 2024
dcef45b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 3, 2024
723b6ae
Update draw()
jan-janssen Jul 3, 2024
6831ba5
Merge remote-tracking branch 'origin/delayed' into delayed
jan-janssen Jul 3, 2024
d9367f8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 3, 2024
b6a91bd
Ensure keys are strings
jan-janssen Jul 3, 2024
c815ab6
Implement __copy__()
jan-janssen Jul 3, 2024
75a3b2f
fix copy
jan-janssen Jul 3, 2024
bb5941c
Update delayed.py
jan-janssen Jul 3, 2024
1be09af
run_job_with_status_initialized() - only execute the job if the statu…
jan-janssen Jul 3, 2024
da6a44b
Implement __iter__()
jan-janssen Jul 3, 2024
fa05094
Merge remote-tracking branch 'origin/delayed' into delayed
jan-janssen Jul 3, 2024
d475ecd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 3, 2024
06f6410
Merge remote-tracking branch 'refs/remotes/origin/wrap_python_functio…
jan-janssen Jul 4, 2024
09b5255
use getattr()
jan-janssen Jul 4, 2024
2d53ced
wrap_python_function(): add output_file_lst and output_key_lst
jan-janssen Jul 4, 2024
4847804
Merge remote-tracking branch 'refs/remotes/origin/main' into delayed
jan-janssen Jul 4, 2024
27687ff
Merge remote-tracking branch 'refs/remotes/origin/main' into delayed
jan-janssen Jul 4, 2024
d3037bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 4, 2024
e920f69
Merge remote-tracking branch 'refs/remotes/origin/main' into delayed
jan-janssen Jul 4, 2024
629bbcd
update test
jan-janssen Jul 4, 2024
d8f0b3d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 4, 2024
2dd3a75
Add DocStrings
jan-janssen Jul 4, 2024
6cc64bb
Update pyiron_base/project/delayed.py
jan-janssen Jul 4, 2024
8bd7ee7
Update pyiron_base/project/delayed.py
jan-janssen Jul 4, 2024
563efdf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 4, 2024
db59ee4
Update pyiron_base/project/delayed.py
jan-janssen Jul 4, 2024
039ae34
Update pyiron_base/project/delayed.py
jan-janssen Jul 4, 2024
c9f89f3
Merge remote-tracking branch 'refs/remotes/origin/main' into delayed
jan-janssen Jul 4, 2024
d410c0c
Update pyiron_base/project/delayed.py
jan-janssen Jul 5, 2024
8c60c50
Update pyiron_base/project/delayed.py
jan-janssen Jul 5, 2024
cdeaf9d
Update pyiron_base/project/delayed.py
jan-janssen Jul 5, 2024
7c24c98
Implement separate get_node_name() function
jan-janssen Jul 5, 2024
4a9167a
More standalone functions
jan-janssen Jul 5, 2024
8c7edf1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyiron_base/project/delayed.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_graph(
Returns:
dict, list: dictionary of nodes and list of edges
"""
if isinstance(obj, DelayedObject):
if isinstance(obj, DelayedObject) and obj_name is not None:
jan-janssen marked this conversation as resolved.
Show resolved Hide resolved
try:
obj_name = (
obj._function.__name__ + "_" + get_hash(binary=cloudpickle.dumps(obj))
Expand Down
Loading