示例#1
0
def renderTemplate(template, fs, modelDir="", absolutePaths=False, datastoreNames={}):
    # Our HTML template for the interface:
    with fs.open("models/solarSunda.html") as tempFile:
        template = Template(tempFile.read())
        # only has A,  and V

    return __metaModel__.renderTemplate(template, fs, modelDir, absolutePaths, datastoreNames)
示例#2
0
def quickRender(template, modelDir="", absolutePaths=False, datastoreNames={}):
    ''' Presence of this function indicates we can run the model quickly via a public interface. '''
    return __metaModel__.renderTemplate(template,
                                        modelDir,
                                        absolutePaths,
                                        datastoreNames,
                                        quickRender=True)
示例#3
0
文件: pvWatts.py 项目: iut62elec/omf
def renderTemplate(template, modelDir="", absolutePaths=False, datastoreNames={}):
	return __metaModel__.renderTemplate(template, modelDir, absolutePaths, datastoreNames)
def quickRender(template, modelDir="", absolutePaths=False, datastoreNames={}):
	''' Presence of this function indicates we can run the model quickly via a public interface. '''
	return __metaModel__.renderTemplate(template, modelDir, absolutePaths, datastoreNames, quickRender=True)
示例#5
0
def renderTemplate(template, modelDir="", absolutePaths=False, datastoreNames={}):
	return __metaModel__.renderTemplate(template, modelDir, absolutePaths, datastoreNames)
示例#6
0
def renderTemplate(template, fs, modelDir="MyModel", absolutePaths=False, datastoreNames={}):
    # Our HTML template for the interface:
    with fs.open("models/cvrStatic.html") as tempFile:
        template = Template(tempFile.read())
    return __metaModel__.renderTemplate(template, fs, modelDir, absolutePaths, datastoreNames)