def __init__(self, 
     attribute=None, 
     source_expression=None, 
     target_timespan=None, 
     scope_name=None,
     fresh=None,
     ):
     assert isinstance(scope_name, (str, type(None)))
     assert isinstance(fresh, (bool, type(None))), repr(fresh)
     SetExpression.__init__(
         self, 
         attribute=attribute, 
         source_expression=source_expression, 
         target_timespan=target_timespan,
         )
     self._scope_name = scope_name
     self._fresh = fresh
示例#2
0
 def __init__(
     self,
     attribute=None,
     source_expression=None,
     target_timespan=None,
     scope_name=None,
     fresh=None,
 ):
     assert isinstance(scope_name, (str, type(None)))
     assert isinstance(fresh, (bool, type(None))), repr(fresh)
     SetExpression.__init__(
         self,
         attribute=attribute,
         source_expression=source_expression,
         target_timespan=target_timespan,
     )
     self._scope_name = scope_name
     self._fresh = fresh
 def __init__(self, 
     attribute=None, 
     source_expression=None, 
     target_timespan=None,
     persist=True, 
     truncate=None,
     ):
     from experimental.tools import musicexpressiontools
     assert isinstance(source_expression, (musicexpressiontools.Expression))
     assert isinstance(persist, bool)
     assert isinstance(truncate, (bool, type(None)))
     SetExpression.__init__(
         self,
         attribute=attribute, 
         source_expression=source_expression, 
         target_timespan=target_timespan,
         )
     AnchoredExpression.__init__(self, anchor=target_timespan)
     self._persist = persist
     self._truncate = truncate
示例#4
0
 def __init__(
     self,
     attribute=None,
     source_expression=None,
     target_timespan=None,
     persist=True,
     truncate=None,
 ):
     from experimental.tools import musicexpressiontools
     assert isinstance(source_expression, (musicexpressiontools.Expression))
     assert isinstance(persist, bool)
     assert isinstance(truncate, (bool, type(None)))
     SetExpression.__init__(
         self,
         attribute=attribute,
         source_expression=source_expression,
         target_timespan=target_timespan,
     )
     AnchoredExpression.__init__(self, anchor=target_timespan)
     self._persist = persist
     self._truncate = truncate