Mercurial > hg > auditok
view auditok/exceptions.py @ 235:bb9252b56d7c
Add arguments to TooSamllBlockDuration exception
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Fri, 19 Jul 2019 23:16:00 +0100 |
parents | 8b3c11cad8d8 |
children | deb05a16eef5 |
line wrap: on
line source
class DuplicateArgument(Exception): pass class TooSamllBlockDuration(ValueError): """Raised when block_dur results in a block_size smaller than one sample""" def __init__(self, message, block_dur, sampling_rate): self.block_dur = block_dur self.sampling_rate = sampling_rate super(TooSamllBlockDuration, self).__init__(message)