Skip to content

Commit

Permalink
Update sampler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinpape committed Jul 11, 2024
1 parent 1c9dbe8 commit 380b2a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_em/data/sampler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from typing import List
from typing import List, Optional


class MinForegroundSampler:
Expand Down Expand Up @@ -86,7 +86,7 @@ def __init__(
self,
min_num_instances: int = 2,
p_reject: float = 1.0,
min_size: int = None
min_size: Optional[int] = None
):
self.min_num_instances = min_num_instances
self.p_reject = p_reject
Expand Down

0 comments on commit 380b2a5

Please sign in to comment.