check_weighter_resolved_array_validation¶
yohou.testing.check_weighter_resolved_array_validation(weighter, key)
¶
Check resolved-array validation rejects NaN/negative/inf/all-zero.
Drives _resolve_weighter_to_array (and _validate_weight_array) with
weighters whose resolution yields each invalid case and asserts a
ValueError is raised.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
weighter
|
BaseWeighter
|
Weighter instance (unused; the check is family-level). |
required |
key
|
Series
|
Key series with which to resolve the stub weighters. |
required |
Raises ¶
| Type | Description |
|---|---|
AssertionError
|
If any invalid resolved array is accepted. |