Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
0ed343b
feat(tests): add comprehensive unit tests for CellMapDataset, CellMap…
rhoadesScholar Mar 4, 2026
754dddb
feat: support 5-column CSV format in CellMapDataSplit for challenge d…
rhoadesScholar Mar 5, 2026
b567f51
feat: enhance CellMapDataset and CellMapImage for better handling of …
rhoadesScholar Mar 5, 2026
bf9de7e
feat: improve handling of 2D array specs in CellMapDataset and EmptyI…
rhoadesScholar Mar 5, 2026
d0c0480
feat: implement seeding for reproducible data augmentation in CellMap…
rhoadesScholar Mar 5, 2026
ab59d78
fix: remove unused import of Subset from DataLoader in dataloader.py …
rhoadesScholar Mar 13, 2026
675b614
Potential fix for pull request finding
rhoadesScholar Mar 13, 2026
057f91c
Initial plan
Copilot Mar 13, 2026
b5dd7ae
Initial plan
Copilot Mar 13, 2026
911d9a6
Initial plan
Copilot Mar 13, 2026
a1883ec
fix: remove scalar write support from ImageWriter and CellMapDatasetW…
Copilot Mar 13, 2026
78bef7a
Remove scalar write support from ImageWriter
Copilot Mar 13, 2026
ab1bf11
Fix total_voxels to use actual data volume spatial shape
Copilot Mar 13, 2026
ce2a150
Merge pull request #67 from janelia-cellmap/copilot/sub-pr-65-again
rhoadesScholar Mar 13, 2026
88d3d08
Merge branch 'rewrite' into copilot/sub-pr-65-yet-again
rhoadesScholar Mar 13, 2026
b2db1b6
Potential fix for pull request finding
rhoadesScholar Mar 13, 2026
357f2e0
Update src/cellmap_data/dataset.py
rhoadesScholar Mar 13, 2026
71e1832
Merge branch 'rewrite' into copilot/sub-pr-65
rhoadesScholar Mar 13, 2026
9fa8953
black format
rhoadesScholar Mar 13, 2026
3ec2dab
Potential fix for pull request finding
rhoadesScholar Mar 13, 2026
99e0dd7
Potential fix for pull request finding
rhoadesScholar Mar 13, 2026
0d4bf5a
Improve total_voxels to use cached bounding_box instead of reopening s0
Copilot Mar 13, 2026
7554d4c
test: add test for scalar-in-batch TypeError and explicit guard in da…
Copilot Mar 13, 2026
d26ace8
fix: add type check for written values in CellMapDatasetWriter
rhoadesScholar Mar 13, 2026
8d446cc
refactor: apply rhoadesScholar suggestion - drop else branch, keep np…
Copilot Mar 17, 2026
ef33153
Potential fix for pull request finding
rhoadesScholar Mar 17, 2026
e3f395d
Merge pull request #66 from janelia-cellmap/copilot/sub-pr-65
rhoadesScholar Mar 17, 2026
31c032c
Merge branch 'rewrite' into copilot/sub-pr-65-yet-again
rhoadesScholar Mar 17, 2026
02f8b6b
Potential fix for pull request finding
rhoadesScholar Mar 18, 2026
c6d1338
Potential fix for pull request finding
rhoadesScholar Mar 18, 2026
c7141ce
test: add coverage for 0-D array/tensor rejection and unsupported bat…
Copilot Mar 18, 2026
50c3f1d
Merge pull request #69 from janelia-cellmap/copilot/sub-pr-65-yet-again
rhoadesScholar Mar 18, 2026
bc8792c
fix: adjust bounding box handling and improve target array writing logic
rhoadesScholar Mar 20, 2026
c0cad73
black format
rhoadesScholar Mar 20, 2026
08fd903
Update tests/test_dataset.py
rhoadesScholar Mar 20, 2026
295b90d
Initial plan
Copilot Mar 20, 2026
6c895fa
Fix review comments: unused imports, min_redundant_inds, ClassBalance…
Copilot Mar 20, 2026
ddb6246
Update src/cellmap_data/sampler.py
rhoadesScholar Mar 20, 2026
4448a56
Add tests for ClassBalancedSampler edge cases and min_redundant_inds;…
Copilot Mar 20, 2026
6fb390c
Merge pull request #70 from janelia-cellmap/copilot/sub-pr-65
rhoadesScholar Mar 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "hatchling.build"
# https://peps.python.org/pep-0621/
[project]
name = "cellmap-data"
description = "Utility for loading CellMap data for machine learning training, utilizing PyTorch, Xarray, TensorStore, and PyDantic."
description = "Utility for loading CellMap data for machine learning training, utilizing PyTorch and zarr."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "BSD 3-Clause License" }
Expand All @@ -28,18 +28,10 @@ dependencies = [
"torchvision",
"numpy",
"matplotlib",
"pydantic_ome_ngff",
"xarray_ome_ngff",
"tensorstore",
# "xarray=2024.10.0",
"xarray-tensorstore==0.1.5",
"zarr>=2.0,<3.0",
"universal_pathlib>=0.2.0",
"fsspec[s3,http]",
"neuroglancer",
"h5py", # Only needed until the new cellmap-flow is released
# "cellmap-flow",
"ipython",
# "py_distance_transforms",
"scipy",
"tqdm",
]
Expand Down
10 changes: 2 additions & 8 deletions src/cellmap_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
__author__ = "Jeff Rhoades"
__email__ = "rhoadesj@hhmi.org"

from .base_dataset import CellMapBaseDataset
from .base_image import CellMapImageBase
from .dataloader import CellMapDataLoader
from .dataset import CellMapDataset
from .dataset_writer import CellMapDatasetWriter
Expand All @@ -22,20 +20,16 @@
from .image import CellMapImage
from .image_writer import ImageWriter
from .multidataset import CellMapMultiDataset
from .mutable_sampler import MutableSubsetRandomSampler
from .subdataset import CellMapSubset
from .sampler import ClassBalancedSampler

__all__ = [
"CellMapBaseDataset",
"CellMapImageBase",
"CellMapDataLoader",
"CellMapDataset",
"CellMapDatasetWriter",
"CellMapDataSplit",
"CellMapImage",
"ImageWriter",
"CellMapMultiDataset",
"CellMapSubset",
"EmptyImage",
"MutableSubsetRandomSampler",
"ClassBalancedSampler",
]
Comment on lines 15 to 35
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module’s __all__ no longer exports previously public symbols (e.g., CellMapBaseDataset, CellMapImageBase, CellMapSubset, MutableSubsetRandomSampler). If this package follows semantic versioning, this is a breaking API change—consider documenting it prominently and/or bumping the major version accordingly.

Copilot uses AI. Check for mistakes.
108 changes: 0 additions & 108 deletions src/cellmap_data/base_dataset.py

This file was deleted.

100 changes: 0 additions & 100 deletions src/cellmap_data/base_image.py

This file was deleted.

Loading
Loading