kaldi-io-for-python
kaldi-io-for-python copied to clipboard
Improve slightly AssertionError msg
I got the error
Traceback (most recent call last):
...
File ".../site-packages/kaldi_io/kaldi_io.py", line 489, in _read_compressed_mat
assert(format == 'CM ') # The formats CM2, CM3 are not supported...
AssertionError
which only tells, that format
is unequal to 'CM '. With this PR, the exception message would be slightly more informative and tell, what the value of format
is.
Changes merged inside : #57 Thank you Christoph! Karel.