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

@@ -53,7 +53,8 @@ def test_load_cache():
Image._load_fields_cached.cache_clear()
with patch("backend.nodes.image_demo.DEMO_DIR", FIXTURES):
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(name="nanoparticles.npy")
_, second = node.load(name="nanoparticles.npy")
assert loader.call_count == 1