From b8873ff1098da2dbda9f24a59db5a053820c4540 Mon Sep 17 00:00:00 2001 From: dopefishh Date: Mon, 2 Jun 2014 13:29:14 +0200 Subject: [PATCH] test --- pympi/Praat.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pympi/Praat.py b/pympi/Praat.py index ebb1f47..e4bda31 100644 --- a/pympi/Praat.py +++ b/pympi/Praat.py @@ -341,10 +341,9 @@ def addInterval(self, begin, end, value, check=True, threshhold=5): value -- Value
check -- Flag for overlap checking
threshhold -- Threshhold for checking overlap""" - if self.tierType == 'IntervalTier': - warnings.warn(('addInterval: Wrong tier type... Tier should be a ' + - 'IntervalTier the tier is a' + - '"{}"').format(self.tierType)) + if self.tierType != 'IntervalTier': + warnings.warn('addInterval: Wrong tier type... Tier should be a ' + + 'IntervalTier the tier is a') return 1 if check is False or len( [i for i in self.intervals