Skip to main content

RegionFilter

GitHub source

RegionFilter

evo.compute.tasks.kriging.RegionFilter

Region filter for restricting kriging to specific categories on the target.

Use either names OR values, not both: - names: Category names (strings) - used for CategoryAttribute with string lookup - values: Integer values - used for integer-indexed categories or BlockModel integer columns

Example: >>> # Filter by category names (string lookup) >>> filter_by_name = RegionFilter( ... attribute=block_model.attributes["domain"], ... names=["LMS1", "LMS2"], ... ) >>> >>> # Filter by integer values (direct index matching) >>> filter_by_value = RegionFilter( ... attribute=block_model.attributes["domain"], ... values=[1, 2, 3], ... )

attribute

attribute: AttributeExpression

The category attribute to filter on (from target object).

names

names: list[str] | None = None

Category names to include (mutually exclusive with values).

values

values: list[int] | None = None

Integer category keys to include (mutually exclusive with names).

What is the reason for your feedback?