Skip to content

Commit

Permalink
rm files related to zoo
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarj committed Jan 13, 2025
1 parent b40d244 commit 2437cfe
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 188 deletions.
16 changes: 0 additions & 16 deletions spinpath/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,3 @@
"load_torchscript_model_from_filesystem",
"load_torchscript_model_from_hf",
]


# Patch Zarr. See:
# https://github.com/bayer-science-for-a-better-life/tiffslide/issues/72#issuecomment-1627918238
# https://github.com/zarr-developers/zarr-python/pull/1454
def _patch_zarr_kvstore() -> None:
from zarr.storage import KVStore

def _zarr_KVStore___contains__(self, key): # type: ignore
return key in self._mutable_mapping

if "__contains__" not in KVStore.__dict__:
KVStore.__contains__ = _zarr_KVStore___contains__


_patch_zarr_kvstore()
128 changes: 0 additions & 128 deletions spinpath/client/zoo.py

This file was deleted.

3 changes: 0 additions & 3 deletions spinpath/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@

# Cache for feature embeddings.
SPINPATH_CACHE_DIR = SPINPATH_DIR / "cache"

# JSON file with list of registered SpinPath models.
SPINPATH_REGISTRY_PATH = SPINPATH_DIR / "registry.json"
41 changes: 0 additions & 41 deletions spinpath/schemas/wsinfer-mil-zoo-registry.schema.json

This file was deleted.

0 comments on commit 2437cfe

Please sign in to comment.