Skip to content

Commit

Permalink
Set number of samples
Browse files Browse the repository at this point in the history
Apply a single number to all datasets
  • Loading branch information
sbinnee committed Apr 21, 2022
1 parent 4b9bacc commit 3659670
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bioimageloader/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ def num_samples(self) -> Optional[int]:
return getattr(self, '_num_samples')
return None

@num_samples.setter
def num_samples(self, val):
self._num_samples = val

@property
def grayscale(self) -> Optional[bool]:
"""Flag for grayscale conversion"""
Expand Down

0 comments on commit 3659670

Please sign in to comment.