Skip to content

effector/find-regions-feature-conflict

Pack Severity Fix Versions
effector error none, edit by hand All versions

find_regions() checks if (feature is None) == (features is None) and raises ValueError. Pass a single feature (returning a Partition) or features= (returning {feature_name: Partition}), never both or neither.

regions = ale.find_regions("wind", features="heterogeneous")
regions = ale.find_regions(feature="wind")

Calls to .find_regions(...) that provide both feature and features, or omit both.

Pass feature="col" (or positional "col") for one feature, or features="heterogeneous" / features=["col_a", "col_b"] for multiple features.

effector find_regions() requires exactly one of feature= (single Partition) or features= (dict of Partitions) and raises ValueError when both or neither are passed.

See all rules in the effector pack.