Skip to content

Commit

Permalink
Release 0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Dec 15, 2024
1 parent 4a0a8ea commit 60d992a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aiida_pythonjob/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""AiiDA plugin that run Python function on remote computers."""

__version__ = "0.1.5"
__version__ = "0.1.6"

from .calculations import PythonJob
from .launch import prepare_pythonjob_inputs
Expand Down
2 changes: 1 addition & 1 deletion src/aiida_pythonjob/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ def prepare_pythonjob_inputs(
**kwargs,
}
if process_label:
inputs[process_label] = process_label
inputs["process_label"] = process_label
return inputs
3 changes: 2 additions & 1 deletion tests/test_pythonjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ def add(x, y):
inputs = prepare_pythonjob_inputs(
add,
function_inputs={"x": 1, "y": 2},
process_label="add",
)
result, node = run_get_node(PythonJob, **inputs)

assert result["result"].value == 3
assert node.process_label == "PythonJob<add>"
assert node.process_label == "add"


def test_function_custom_outputs(fixture_localhost):
Expand Down

0 comments on commit 60d992a

Please sign in to comment.