def __init__( self, cyclic=True, counts=None, secondary_division_maker=None, ): from experimental import makertools assert isinstance(cyclic, bool), repr(cyclic) self._cyclic = cyclic counts = counts or () if (counts == mathtools.Infinity or counts == mathtools.Infinity()): self._counts = counts else: assert mathtools.all_are_positive_integers(counts) self._counts = counts if secondary_division_maker is not None: prototype = (makertools.SplitByDurationsDivisionCallback, ) assert isinstance(secondary_division_maker, prototype) self._secondary_division_maker = secondary_division_maker
def __init__( self, cyclic=True, measure_counts=None, secondary_division_maker=None, ): from experimental import makertools assert isinstance(cyclic, bool), repr(cyclic) self._cyclic = cyclic measure_counts = measure_counts or () if measure_counts == mathtools.Infinity: self._measure_counts = measure_counts else: assert mathtools.all_are_positive_integers(measure_counts) self._measure_counts = measure_counts if secondary_division_maker is not None: prototype = (makertools.DivisionMaker,) assert isinstance(secondary_division_maker, prototype) self._secondary_division_maker = secondary_division_maker
def __init__( self, cyclic=True, counts=None, secondary_division_maker=None, ): from experimental import makertools assert isinstance(cyclic, bool), repr(cyclic) self._cyclic = cyclic counts = counts or () if (counts == mathtools.Infinity or counts == mathtools.Infinity()): self._counts = counts else: assert mathtools.all_are_positive_integers(counts) self._counts = counts if secondary_division_maker is not None: prototype = (makertools.SplitByDurationsDivisionCallback,) assert isinstance(secondary_division_maker, prototype) self._secondary_division_maker = secondary_division_maker