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
Raise ValueError for digital reads that cannot fit the requested resolution #782
This raises Exception: Cannot convert digital samples to lower dtype. Risk of overflow/underflow. The same path is used by rdrecord(..., physical=False, return_res=8) and read_signal_values(..., kind="digital", resolution=8, layout="uniform"). The raises are in convert_dtype in src/wfdb/io/_signal.py.
This is an invalid requested resolution, so ValueError would let callers catch it without catching every exception. Add regression coverage for both uniform and expanded conversions. Found while reviewing #781; it is separate from that PR's naming changes.
Activity
Add readable read_record API (#781)