示例#1
0
# opObj11.addParameter(name='pairsList', value='(0,1)', format='pairsList')
#
# #send to server
# procUnitConfObj2 = controllerObj.addProcUnit(name='SendToServer')
# procUnitConfObj2.addParameter(name='server', value='jro-app.igp.gob.pe', format='str')
# #procUnitConfObj2.addParameter(name='server', value='10.10.120.125', format='str')
# procUnitConfObj2.addParameter(name='username', value='wmaster', format='str')
# procUnitConfObj2.addParameter(name='password', value='mst2010vhf', format='str')
# procUnitConfObj2.addParameter(name='localfolder', value=figures_path, format='str')
# procUnitConfObj2.addParameter(name='remotefolder', value=remotefolder, format='str')
# procUnitConfObj2.addParameter(name='ext', value='.png', format='str')
# procUnitConfObj2.addParameter(name='period', value='60', format='int')
# procUnitConfObj2.addParameter(name='protocol', value='ftp', format='str')

#######################################################################
############### UNIDAD DE ESCRITURA ###################################
#######################################################################

#opObj11 = procUnitConfObjSousySpectra.addOperation(name='SpectraWriter', optype='other')
#opObj11.addParameter(name='path', value=wr_path)
#opObj11.addParameter(name='blocksPerFile', value='50', format='int')

print "Escribiendo el archivo XML"
controllerObj.writeXml(filename)
print "Leyendo el archivo XML"
controllerObj.readXml(filename)

controllerObj.createObjects()
controllerObj.connectObjects()
controllerObj.run()
示例#2
0
文件: cli.py 项目: JRO-Peru/schainpy
def runFromXML(filename):
    controller = Project()
    if not controller.readXml(filename):
        return
    controller.start()
    return