Add setup (this is only temporary for the hackathon)

This commit is contained in:
Fabio Giovanazzi 2025-08-01 20:43:04 +02:00
parent f83a5e90ae
commit 447a52b684
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
7 changed files with 10936 additions and 2 deletions

View file

@ -65,7 +65,7 @@ class GeometryIndexed:
cls._read_metadata(f, kwargs)
# noinspection PyTypeChecker
kwargs['data'] = np.fromstring(f.read(width * height * cls.dtype().itemsize), cls.dtype).reshape(
kwargs['data'] = np.frombuffer(f.read(width * height * cls.dtype().itemsize), cls.dtype).reshape(
(height, width))
return cls(**kwargs)

View file

@ -28,7 +28,7 @@ class LocalCacheProxy:
try:
# first check out cache
result = self._items.get()[key]
except KeyError:
except (KeyError, LookupError):
# not in our cache
result = cache.get(key, default=NoneFromCache)
if result is not NoneFromCache: