Skip to content

Instantly share code, notes, and snippets.

@marcosfelt
Created June 23, 2018 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcosfelt/6ac40fb150da1060899beb5edad61e6e to your computer and use it in GitHub Desktop.
Save marcosfelt/6ac40fb150da1060899beb5edad61e6e to your computer and use it in GitHub Desktop.
Chemios Temperature Controllers Base
# -*- coding: utf-8 -*-
"""Base Class for Temperature Controllers"""
from abc import ABC
class TemperatureControllers(ABC):
'''Base Class for Temperature Controllers
'''
def get_current_temperature(self):
''' Method to get the current temperature
Returns:
update: dict
update = {
'temp_set_point': setpoint in °C,
'current_temp': temperature in °C
}
'''
def set_temperature(self, temp_set_point):
''' Method to set the temperature
Args:
temp_set_point (float): temperature setpoint in °C
Returns:
update: dict
update = {
'temp_set_point': setpoint in °C,
'current_temp': temperature in °C
}
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment