_digi_nan: use a dictionary instead of "if" statements.
_digi_nan: use a dictionary instead of "if" statements.

This will also raise an exception for unknown formats, rather than
silently returning None.

MIT-LCP/wfdb-python