Created
June 23, 2018 17:12
-
-
Save marcosfelt/6ac40fb150da1060899beb5edad61e6e to your computer and use it in GitHub Desktop.
Chemios Temperature Controllers Base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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