Skip to content

Crop category mismatch

CropCategoryMismatchError

CropCategoryMismatchError(
    focal_name: Optional[str],
    first_crop_category: str,
    second_crop_category: str,
)

Bases: Exception

Raised when crop categories mismatch between two identical taxa.

Parameters:

Name Type Description Default
focal_name Optional[str]

Focal name of the taxon

required
first_crop_category str

First crop category

required
second_crop_category str

Second crop category

required