Skip to content

Commit

Permalink
Pfuncn uses counter.
Browse files Browse the repository at this point in the history
  • Loading branch information
smrg-lm committed May 1, 2020
1 parent 2893bda commit e78245e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sc3/seq/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import inspect

from ..base import functions as fn
from ..base import utils as utl
from . import event as evt
from . import stream as stm

Expand Down Expand Up @@ -208,7 +209,7 @@ def __init__(self, func, repeats=1):
self.repeats = repeats

def __embed__(self, inval=None):
for i in range(self.repeats):
for i in utl.counter(self.repeats):
if self._func_has_inval:
inval = yield self.func(inval)
else:
Expand Down

0 comments on commit e78245e

Please sign in to comment.