You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parachute refuses a numpy integer trigger but accepts a numpy float #1106
A height read from an array, or out of a config parsed by pandas, arrives as numpy.int64 if it has no decimal point, so this is reachable without anyone reaching for a numpy scalar on purpose.
Expected behavior
A whole number is a height whichever integer type it is:
bool wants excluding either way. It is an int, so trigger=True is currently taken as a height of one metre, silently.
Additional context
Found while narrowing the matching check in #1103. I had widened the stochastic wrapper to numbers.Real and had to put it back, because accepting a type Parachute refuses only moves the failure from validation to create time. The wrapper follows this check rather than improving on it, so widening here would let both agree.
Activity
fix: accept numpy integer types as Parachute trigger (#1116)