kaldi-io-for-python icon indicating copy to clipboard operation
kaldi-io-for-python copied to clipboard

Improve slightly AssertionError msg

Open boeddeker opened this issue 2 years ago • 1 comments

boeddeker avatar May 17 '22 20:05 boeddeker

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.

boeddeker avatar May 17 '22 20:05 boeddeker

Changes merged inside : #57 Thank you Christoph! Karel.

KarelVesely84 avatar Jun 16 '23 10:06 KarelVesely84