Skip to content

Commit b88c058

Browse files
committed
Release 0.2.4
1 parent a9639e4 commit b88c058

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ Source = "https://github.com/aiidateam/aiida-pythonjob"
5757
"pythonjob.builtins.bool" = "aiida.orm.nodes.data.bool:Bool"
5858
"pythonjob.builtins.list"="aiida_pythonjob.data.data_wrapper:List"
5959
"pythonjob.builtins.dict"="aiida_pythonjob.data.data_wrapper:Dict"
60+
"pythonjob.numpy.float32" = "aiida.orm.nodes.data.float:Float"
61+
"pythonjob.numpy.float64" = "aiida.orm.nodes.data.float:Float"
62+
"pythonjob.numpy.int64" = "aiida.orm.nodes.data.int:Int"
63+
"pythonjob.numpy.bool_" = "aiida.orm.nodes.data.bool:Bool"
6064
"pythonjob.numpy.ndarray"="aiida_pythonjob.data.data_wrapper:ArrayData"
6165

6266

src/aiida_pythonjob/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""AiiDA plugin that run Python function on remote computers."""
22

3-
__version__ = "0.2.3"
3+
__version__ = "0.2.4"
44

55
from .calculations import PythonJob
66
from .decorator import pyfunction

tests/test_serializer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def __init__(self, name, age):
3333
(1, orm.Int),
3434
(1.0, orm.Float),
3535
("string", orm.Str),
36+
(np.float64(1.0), orm.Float),
37+
(np.int64(1), orm.Int),
38+
(np.bool_(True), orm.Bool),
3639
(True, orm.Bool),
3740
([1, 2, 3], orm.List),
3841
({"a": 1, "b": 2}, orm.Dict),

0 commit comments

Comments
 (0)