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")What the rule reports
Section titled “What the rule reports”Calls to .find_regions(...) that provide both feature and features, or omit both.
How to fix it
Section titled “How to fix it”Pass feature="col" (or positional "col") for one feature, or features="heterogeneous" / features=["col_a", "col_b"] for multiple features.
Diagnostic message
Section titled “Diagnostic message”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.