diff --git a/map2loop/sampler.py b/map2loop/sampler.py index 01600566..2273de29 100644 --- a/map2loop/sampler.py +++ b/map2loop/sampler.py @@ -9,7 +9,7 @@ import pandas import shapely import numpy -from typing import Optional +from typing import Optional, Union class Sampler(ABC): @@ -60,7 +60,7 @@ class SamplerDecimator(Sampler): """ @beartype.beartype - def __init__(self, decimation: int = 1): + def __init__(self, decimation: Union[int, float] = 1): """ Initialiser for decimator sampler