Exemplo n.º 1
0
    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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
    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
Exemplo n.º 5
0
    def __init__(self, **specs):

        linearJScheduler.__init__(self, **specs)
 def __init__(self, **specs):
     
     linearJScheduler.__init__(self, **specs)