Cant create scripted profile

The VE Python API allows users create simple programs using the Python Programming Language, to interact with a VE Model and/or Vista Results File
Post Reply
Dimitri
VE Beginner
VE Beginner
Posts: 16
Joined: Sat Jun 15, 2013 7:57 pm

Cant create scripted profile

Post by Dimitri »

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
Post Reply