Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dopefishh committed Jun 2, 2014
1 parent 29009ac commit b8873ff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pympi/Praat.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,9 @@ def addInterval(self, begin, end, value, check=True, threshhold=5):
value -- Value<br />
check -- Flag for overlap checking<br />
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
Expand Down

0 comments on commit b8873ff

Please sign in to comment.