Skip to content

Commit

Permalink
fix(dataset): make load_cached method private
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrasser committed May 7, 2024
1 parent fbf4e01 commit c569053
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ all: $(TARGET)
$(TARGET): cryosparc/include/cryosparc-tools/*.h cryosparc/dataset.c cryosparc/*.pyx cryosparc/*.pxd setup.py pyproject.toml
python3 -m setup build_ext -i

# -----------------------------------------------------------------------------
# Docs
# -----------------------------------------------------------------------------
docs:
jupyter-book build docs

# -----------------------------------------------------------------------------
# Vercel deployment-related targets
# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -45,4 +51,4 @@ clean:
rm -rf *.egg-info
rm -rf .venv

.PHONY: clean all vercelinstall vercelbuild
.PHONY: clean all docs vercelinstall vercelbuild
3 changes: 0 additions & 3 deletions cryosparc/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,6 @@ def load(cls, file: Union[str, PurePath, IO[bytes]], cstrs: bool = False):

@classmethod
def load_cached(cls, file: Union[str, PurePath, IO[bytes]], cstrs: bool = False):
"""Replicate Dataset.from_file but with cacheing.
This can significantly speed up end-of-job validation with a large number of outputs (e.g., 3D Classification)
"""
return cls._load_cached(file, cstrs).copy()

@classmethod
Expand Down

0 comments on commit c569053

Please sign in to comment.