Skip to content

Commit

Permalink
fix: Change classes parameter type from Iterable to Sequence in CellM…
Browse files Browse the repository at this point in the history
…apDataLoader
  • Loading branch information
rhoadesScholar committed Jan 10, 2025
1 parent 7530679 commit 4939ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cellmap_data/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .dataset import CellMapDataset
from .multidataset import CellMapMultiDataset
from .dataset_writer import CellMapDatasetWriter
from typing import Callable, Iterable, Optional, Sequence
from typing import Callable, Optional, Sequence


class CellMapDataLoader:
Expand Down Expand Up @@ -31,7 +31,7 @@ class CellMapDataLoader:
def __init__(
self,
dataset: CellMapMultiDataset | CellMapDataset | Subset | CellMapDatasetWriter,
classes: Iterable[str],
classes: Sequence[str],
batch_size: int = 1,
num_workers: int = 0,
weighted_sampler: bool = False,
Expand Down

0 comments on commit 4939ecb

Please sign in to comment.