Cant create scripted profile
Posted: Fri May 13, 2022 9:04 am
Hi, I cant seem to create a single scripted profile. Even when I copy the example rpofile given in the help files, I get an error trying to save the profile afted import.
The error says - TypeError : module() takes most 2 arguments (3 given)
Can anyone explain what am I doing wrong? Below is the exapmle script from the help file that returns the error (every other code I attempted results in the same outcome)
import apache
class HeatingSetpointControl(apache.profile):
category = apache.Absolute
def evaluate(self):
toa = self.context.weather.ta
val = toa+2
return val
The error says - TypeError : module() takes most 2 arguments (3 given)
Can anyone explain what am I doing wrong? Below is the exapmle script from the help file that returns the error (every other code I attempted results in the same outcome)
import apache
class HeatingSetpointControl(apache.profile):
category = apache.Absolute
def evaluate(self):
toa = self.context.weather.ta
val = toa+2
return val