effector/mask-and-rule-conflict
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| effector | error | none, edit by hand | All versions |
Effector query methods (eval, eval_heter, heter_score, importance, importances, plot, payload) accept either a boolean mask= or a rule= string/Rule, never both. Passing both raises ValueError.
y = ale.eval("wind", xs, mask=tight_mask, rule="interconnector < 200")y = ale.eval("wind", xs, rule="interconnector < 200")What the rule reports
Section titled “What the rule reports”Calls to effector query methods that supply non-None values for both mask= and rule=.
How to fix it
Section titled “How to fix it”Pass either mask= or rule=, not both.
Diagnostic message
Section titled “Diagnostic message”effector queries raise ValueError('pass either `mask` or `rule`, not both') when both mask= and rule= are supplied. Pass only one of mask= or rule=.See all rules in the effector pack.