Skip to content

Locate max points

LocateMaxPointsSetting #

LocateMaxPointsSetting(value: int = 3)

Bases: RapidataSetting

Sets the maximum number of points a user can place on a locate task. Once the limit is reached, no more points can be added.

Parameters:

Name Type Description Default
value int

The maximum number of points allowed. Defaults to 3.

3
Source code in src/rapidata/rapidata_client/settings/locate_max_points.py
def __init__(self, value: int = 3):
    if value < 1:
        raise ValueError(
            "The maximum number of points must be at least 1."
        )
    super().__init__(key="locate_max_points", value=value)