Skip to content

Commit 6d20869

Browse files
committed
Merge remote-tracking branch 'origin/main' into remove_conda
2 parents 0fecee8 + 2081211 commit 6d20869

File tree

8 files changed

+7
-25
lines changed

8 files changed

+7
-25
lines changed

.ci_support/environment-docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ dependencies:
1212
- pyzmq =26.2.0
1313
- flux-core
1414
- jupyter-book =1.0.0
15-
- h5py =3.11.0
16-
- h5io =0.2.4
15+
- h5py =3.11.0

.ci_support/environment-mpich.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies:
88
- mpi4py =4.0.0
99
- pyzmq =26.2.0
1010
- h5py =3.11.0
11-
- h5io =0.2.4
1211
- matplotlib =3.9.2
1312
- networkx =3.3
1413
- pygraphviz =1.14

.ci_support/environment-old.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies:
88
- mpi4py =3.1.4
99
- pyzmq =25.0.0
1010
- h5py =3.6.0
11-
- h5io =0.2.1
1211
- matplotlib =3.5.3
1312
- networkx =2.8.8
1413
- ipython =7.33.0

.ci_support/environment-openmpi.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies:
88
- mpi4py =4.0.0
99
- pyzmq =26.2.0
1010
- h5py =3.11.0
11-
- h5io =0.2.4
1211
- matplotlib =3.9.2
1312
- networkx =3.3
1413
- pygraphviz =1.14

.ci_support/environment-win.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies:
88
- mpi4py =4.0.0
99
- pyzmq =26.2.0
1010
- h5py =3.11.0
11-
- h5io =0.2.4
1211
- matplotlib =3.9.2
1312
- networkx =3.3
1413
- pygraphviz =1.14

binder/environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ dependencies:
1111
- flux-pmix =0.5.0
1212
- versioneer =0.28
1313
- h5py =3.11.0
14-
- h5io =0.2.2

executorlib/cache/hdf.py

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Tuple
22

33
import cloudpickle
4-
import h5io
54
import h5py
65
import numpy as np
76

@@ -23,11 +22,9 @@ def dump(file_name: str, data_dict: dict) -> None:
2322
with h5py.File(file_name, "a") as fname:
2423
for data_key, data_value in data_dict.items():
2524
if data_key in group_dict.keys():
26-
h5io.write_hdf5(
27-
fname=fname,
25+
fname.create_dataset(
26+
name="/" + group_dict[data_key],
2827
data=np.void(cloudpickle.dumps(data_value)),
29-
overwrite="update",
30-
title=group_dict[data_key],
3128
)
3229

3330

@@ -44,21 +41,15 @@ def load(file_name: str) -> dict:
4441
with h5py.File(file_name, "r") as hdf:
4542
data_dict = {}
4643
if "function" in hdf:
47-
data_dict["fn"] = cloudpickle.loads(
48-
h5io.read_hdf5(fname=hdf, title="function", slash="ignore")
49-
)
44+
data_dict["fn"] = cloudpickle.loads(np.void(hdf["/function"]))
5045
else:
5146
raise TypeError("Function not found in HDF5 file.")
5247
if "input_args" in hdf:
53-
data_dict["args"] = cloudpickle.loads(
54-
h5io.read_hdf5(fname=hdf, title="input_args", slash="ignore")
55-
)
48+
data_dict["args"] = cloudpickle.loads(np.void(hdf["/input_args"]))
5649
else:
5750
data_dict["args"] = ()
5851
if "input_kwargs" in hdf:
59-
data_dict["kwargs"] = cloudpickle.loads(
60-
h5io.read_hdf5(fname=hdf, title="input_kwargs", slash="ignore")
61-
)
52+
data_dict["kwargs"] = cloudpickle.loads(np.void(hdf["/input_kwargs"]))
6253
else:
6354
data_dict["kwargs"] = {}
6455
return data_dict
@@ -76,8 +67,6 @@ def get_output(file_name: str) -> Tuple[bool, object]:
7667
"""
7768
with h5py.File(file_name, "r") as hdf:
7869
if "output" in hdf:
79-
return True, cloudpickle.loads(
80-
h5io.read_hdf5(fname=hdf, title="output", slash="ignore")
81-
)
70+
return True, cloudpickle.loads(np.void(hdf["/output"]))
8271
else:
8372
return False, None

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Repository = "https://github.com/pyiron/executorlib"
3838
mpi = ["mpi4py==4.0.0"]
3939
hdf = [
4040
"h5py==3.11.0",
41-
"h5io==0.2.4",
4241
]
4342
graph = [
4443
"pygraphviz==1.14",

0 commit comments

Comments
 (0)