def __init__(self, nSteps=1, useAngles=False, **specs): linearJScheduler.__init__(self, **specs) if nSteps < 1: raise TypeError("nSteps must be 1 or greater") nSteps = int(nSteps) self.nSteps = nSteps self.useAngles = useAngles
def __init__(self, revisit_weight=1.0, **specs): linearJScheduler.__init__(self, **specs) self._outspec['revisit_weight'] = revisit_weight OS = self.OpticalSystem SU = self.SimulatedUniverse TL = self.TargetList allModes = OS.observingModes num_char_modes = len(list(filter(lambda mode: 'spec' in mode['inst']['name'], allModes))) self.fullSpectra = np.zeros((num_char_modes, SU.nPlans), dtype=int) self.partialSpectra = np.zeros((num_char_modes, SU.nPlans), dtype=int) self.revisit_weight = revisit_weight
def __init__(self, **specs): linearJScheduler.__init__(self, **specs)