def __init__(self): phases = [ 'GGgrrrGGgrrr', 'rrrGrGrrrGrG', 'rrrGGrrrrGGr', 'rrrGGGrrrrrr', 'rrrrrrrrrGGG' ] self.phases = {PHASE_NUM: PhaseSet(phases)}
def __init__(self): two_phase = ['GGrr', 'rrGG'] three_phase = ['GGGrrrrrr', 'rrrGGGrrr', 'rrrrrrGGG'] self.phases = {2: PhaseSet(two_phase), 3: PhaseSet(three_phase)}
def __init__(self): self.phases = {} for key, val in PHASES.items(): self.phases[key] = PhaseSet(val)