Skip to content

Commit

Permalink
fix: decimation factor allows floats
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Dec 3, 2024
1 parent d54cb4f commit ebc5e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions map2loop/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pandas
import shapely
import numpy
from typing import Optional
from typing import Optional, Union


class Sampler(ABC):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ebc5e31

Please sign in to comment.