hdf5 support

This commit is contained in:
2026-03-30 20:33:28 -07:00
parent 53e43e8761
commit 7b309a8b23
15 changed files with 1079 additions and 206 deletions

View File

@@ -83,7 +83,8 @@ def test_load_file_cache():
path = os.path.join(tmpdir, "cached.npy")
np.save(path, data)
with patch.object(Image, "_load_image_or_array", wraps=Image._load_image_or_array) as loader:
import backend.importers.array_image as _ai
with patch.object(_ai, "load", wraps=_ai.load) as loader:
_, first = node.load(filename=path)
_, second = node.load(filename=path)
assert loader.call_count == 1