Skip to content

Commit 356c3ac

Browse files
Merge pull request #65 from janelia-cellmap/rewrite
Rewrite
2 parents 9cda999 + 6fb390c commit 356c3ac

52 files changed

Lines changed: 4751 additions & 13667 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyproject.toml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66
# https://peps.python.org/pep-0621/
77
[project]
88
name = "cellmap-data"
9-
description = "Utility for loading CellMap data for machine learning training, utilizing PyTorch, Xarray, TensorStore, and PyDantic."
9+
description = "Utility for loading CellMap data for machine learning training, utilizing PyTorch and zarr."
1010
readme = "README.md"
1111
requires-python = ">=3.11"
1212
license = { text = "BSD 3-Clause License" }
@@ -28,18 +28,10 @@ dependencies = [
2828
"torchvision",
2929
"numpy",
3030
"matplotlib",
31-
"pydantic_ome_ngff",
32-
"xarray_ome_ngff",
33-
"tensorstore",
34-
# "xarray=2024.10.0",
35-
"xarray-tensorstore==0.1.5",
31+
"zarr>=2.0,<3.0",
3632
"universal_pathlib>=0.2.0",
3733
"fsspec[s3,http]",
38-
"neuroglancer",
39-
"h5py", # Only needed until the new cellmap-flow is released
40-
# "cellmap-flow",
4134
"ipython",
42-
# "py_distance_transforms",
4335
"scipy",
4436
"tqdm",
4537
]

src/cellmap_data/__init__.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
__author__ = "Jeff Rhoades"
1313
__email__ = "rhoadesj@hhmi.org"
1414

15-
from .base_dataset import CellMapBaseDataset
16-
from .base_image import CellMapImageBase
1715
from .dataloader import CellMapDataLoader
1816
from .dataset import CellMapDataset
1917
from .dataset_writer import CellMapDatasetWriter
@@ -22,20 +20,16 @@
2220
from .image import CellMapImage
2321
from .image_writer import ImageWriter
2422
from .multidataset import CellMapMultiDataset
25-
from .mutable_sampler import MutableSubsetRandomSampler
26-
from .subdataset import CellMapSubset
23+
from .sampler import ClassBalancedSampler
2724

2825
__all__ = [
29-
"CellMapBaseDataset",
30-
"CellMapImageBase",
3126
"CellMapDataLoader",
3227
"CellMapDataset",
3328
"CellMapDatasetWriter",
3429
"CellMapDataSplit",
3530
"CellMapImage",
3631
"ImageWriter",
3732
"CellMapMultiDataset",
38-
"CellMapSubset",
3933
"EmptyImage",
40-
"MutableSubsetRandomSampler",
34+
"ClassBalancedSampler",
4135
]

src/cellmap_data/base_dataset.py

Lines changed: 0 additions & 108 deletions
This file was deleted.

src/cellmap_data/base_image.py

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)