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
test_physical_conversion: make tests more stringent.
- Test that Record.adc works when n_sig is not set. (Previously, this
didn't work with expanded=True.)
- Test that Record.adc handles NaN by mapping it to the correct
invalid-sample value. (Previously, this didn't work with
expanded=False and inplace=True.) Use multiple formats to test
that this takes the format into account.
Furthermore, the previous code relied on implementation-defined
behavior to handle NaN, which normally results in a RuntimeWarning.
Within the test suite, we set the numpy error handling mode to
"raise", so such implementation-defined conversions actually result in
a FloatingPointError.
0 commit comments