本文整理汇总了Python中Control.control方法的典型用法代码示例。如果您正苦于以下问题:Python Control.control方法的具体用法?Python Control.control怎么用?Python Control.control使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Control
的用法示例。
在下文中一共展示了Control.control方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import Control [as 别名]
# 或者: from Control import control [as 别名]
def __init__(self, filepath, control = None, encoding = 'utf-8'):
if control == None:
control = Control.control()
self.control = control
self.filepath = filepath
with codecs.open(filepath, 'r', encoding) as f:
self.lines = self._genlines(f.read())
示例2: round
# 需要导入模块: import Control [as 别名]
# 或者: from Control import control [as 别名]
warning = 2
state='occupied'
Human_power=3.0
number=30
# Temperature prediction
T_needed_data=[T , H_C_power, set_point, T_outdoor, Cal_data, Human_power]
try:
T_predicted, warning= Prediction.T_prediciton(d, T_needed_data , model)
except Exception, e:
print 'WARNING : PROBLEM DETECTED 3'
print e
warning = 2
T_predicted= T
try:
vent, heat, setpt, Mean_Running_Average = Control.control(state, number/6, area, T_outdoor, co2, T_predicted, Mean_Running_Average )
except Exception, e:
print Exception
print 'WARNING : PROBLEM DETECTED 4'
print e
warning = 4
heat = 0
setpt = 23
vent = 200
setpt = round((setpt*9/5)+32,1)
#write_output( vent, heat, setpt, date, debug)