From 60d992a0cfce75908227ead3c0f3f57ff9e4fd1a Mon Sep 17 00:00:00 2001 From: superstar54 Date: Sun, 15 Dec 2024 08:00:56 +0100 Subject: [PATCH] Release 0.1.6 --- src/aiida_pythonjob/__init__.py | 2 +- src/aiida_pythonjob/launch.py | 2 +- tests/test_pythonjob.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/aiida_pythonjob/__init__.py b/src/aiida_pythonjob/__init__.py index b8d8d61..5c0ffd3 100644 --- a/src/aiida_pythonjob/__init__.py +++ b/src/aiida_pythonjob/__init__.py @@ -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 diff --git a/src/aiida_pythonjob/launch.py b/src/aiida_pythonjob/launch.py index 5039603..0224117 100644 --- a/src/aiida_pythonjob/launch.py +++ b/src/aiida_pythonjob/launch.py @@ -66,5 +66,5 @@ def prepare_pythonjob_inputs( **kwargs, } if process_label: - inputs[process_label] = process_label + inputs["process_label"] = process_label return inputs diff --git a/tests/test_pythonjob.py b/tests/test_pythonjob.py index 9c0ea55..42d87bb 100644 --- a/tests/test_pythonjob.py +++ b/tests/test_pythonjob.py @@ -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" + assert node.process_label == "add" def test_function_custom_outputs(fixture_localhost):