Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/c/h/chimera-python-0.1/src/chimera/drivers/sbig/sbigdrv.py   chimera-python(Download)
    def setTemperature (self, regulation, setpoint, autofreeze = True):
 
        strp = udrv.SetTemperatureRegulationParams()
 
        if regulation == True:
        # activate autofreeze if enabled
        if autofreeze == True:
            strp = udrv.SetTemperatureRegulationParams()
            strp.regulation = udrv.REGULATION_ENABLE_AUTOFREEZE
            strp.ccdSetpoint = 0 # irrelevant

src/c/h/chimera-HEAD/src/chimera/instruments/sbig/sbigdrv.py   chimera(Download)
    def setTemperature (self, regulation, setpoint, autofreeze = True):
 
        strp = udrv.SetTemperatureRegulationParams()
 
        if regulation == True:
        # activate autofreeze if enabled
        if autofreeze == True:
            strp = udrv.SetTemperatureRegulationParams()
            strp.regulation = udrv.REGULATION_ENABLE_AUTOFREEZE
            return self._cmd(udrv.CC_SET_TEMPERATURE_REGULATION, strp, None)