Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I set python script as a parameter in job list file in JEPlus?

i wanna do sensitivity analysis using simlab and JEplus. to do this end, I must make a Job list file. one of my parameters is wwr. I written a python code which can manipulate FenestrationSurface:Detailed. individually, the python code works properly. Also it works so good when i use that as parameter in JEPlus 2.0. But there is a problem, when we want to use that in a job list file, it dose not work???? anybody can help me??? this is my job list: case-001,0,0,18,20,"@python3(apply_wwr.py,P1)" case-002,0,0,18,30,"@python3(apply_wwr.py,P1)" case-003,0,0,18,40,"@python3(apply_wwr.py,P1)" case-004,0,0,18,70,"@python3(apply_wwr.py,P1)"

and this is the jason file of JEPlus2.0: { "projectType" : "EPLUS", "projectID" : "G", "projectNotes" : "New project", "weatherDir" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\Weather\", "weatherFile" : "IRN_SHIRAZ_ITMY.epw", "idfdir" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\", "idftemplate" : "Base.imf", "dckdir" : "./", "dcktemplate" : null, "outputFileNames" : "trnsysout.csv", "paramFile" : null, "rvifile" : null, "parameters" : [ { "paramType" : "PARAMETRICS", "id" : "P0", "name" : "PCM", "description" : "PCM Type", "searchString" : "@@type@@", "type" : "INTEGER", "valuesString" : "{18}", "selectedAltValue" : 0 }, { "paramType" : "PARAMETRICS", "id" : "P1", "name" : "wwr", "description" : "window to wall ratio", "searchString" : "@@wwr@@", "type" : "INTEGER", "valuesString" : "[ 10:10:90 ]", "selectedAltValue" : 0 }, { "paramType" : "PARAMETRICS", "id" : "P2", "name" : "python", "description" : "python function", "searchString" : "@@tag2@@", "type" : "INTEGER", "valuesString" : "@python3(apply_wwr.py,P1)", "selectedAltValue" : 0 } ], "rvx" : { "notes" : "", "rvis" : [ { "fileName" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\Base.mvi", "frequency" : "RunPeriod", "tableName" : "SimResults", "usedInCalc" : true } ], "csvs" : [ ], "sqls" : [ ], "scripts" : [ ], "userSupplied" : [ ], "trns" : [ ], "userVars" : [ ], "objectives" : [ ], "constraints" : [ ] }, "execSettings" : { "numThreads" : 4, "workDir" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\output\", "subSet" : 0, "sampleOpt" : "SHUFFLE", "randomSeed" : 12345, "numberOfJobs" : 2, "jobListFile" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\joblist.txt", "rerunAll" : true, "keepJEPlusFiles" : true, "keepEPlusFiles" : true, "deleteSelectedFiles" : false, "selectedFiles" : "*.dxf *.htm *.mtd *.mdd *.rdd *.shd *.out *.audit *.eio *.idd *.bnd *.ini" } }

How can I set python script as a parameter in job list file in JEPlus?

i wanna do sensitivity analysis using simlab and JEplus. to do this end, I must make a Job list file. one of my parameters is wwr. I written a python code which can manipulate FenestrationSurface:Detailed. individually, the python code works properly. Also it works so good when i use that as parameter in JEPlus 2.0. But there is a problem, when we want to use that in a job list file, it dose not work???? anybody can help me??? this is my job list: case-001,0,0,18,20,"@python3(apply_wwr.py,P1)" case-002,0,0,18,30,"@python3(apply_wwr.py,P1)" case-003,0,0,18,40,"@python3(apply_wwr.py,P1)" case-004,0,0,18,70,"@python3(apply_wwr.py,P1)"

C:\fakepath\joblist.jpg C:\fakepath\Jason01.jpg

and this is the jason file of JEPlus2.0: { "projectType" : "EPLUS", "projectID" : "G", "projectNotes" : "New project", "weatherDir" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\Weather\", "weatherFile" : "IRN_SHIRAZ_ITMY.epw", "idfdir" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\", "idftemplate" : "Base.imf", "dckdir" : "./", "dcktemplate" : null, "outputFileNames" : "trnsysout.csv", "paramFile" : null, "rvifile" : null, "parameters" : [ { "paramType" : "PARAMETRICS", "id" : "P0", "name" : "PCM", "description" : "PCM Type", "searchString" : "@@type@@", "type" : "INTEGER", "valuesString" : "{18}", "selectedAltValue" : 0 }, { "paramType" : "PARAMETRICS", "id" : "P1", "name" : "wwr", "description" : "window to wall ratio", "searchString" : "@@wwr@@", "type" : "INTEGER", "valuesString" : "[ 10:10:90 ]", "selectedAltValue" : 0 }, { "paramType" : "PARAMETRICS", "id" : "P2", "name" : "python", "description" : "python function", "searchString" : "@@tag2@@", "type" : "INTEGER", "valuesString" : "@python3(apply_wwr.py,P1)", "selectedAltValue" : 0 } ], "rvx" : { "notes" : "", "rvis" : [ { "fileName" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\Base.mvi", "frequency" : "RunPeriod", "tableName" : "SimResults", "usedInCalc" : true } ], "csvs" : [ ], "sqls" : [ ], "scripts" : [ ], "userSupplied" : [ ], "trns" : [ ], "userVars" : [ ], "objectives" : [ ], "constraints" : [ ] }, "execSettings" : { "numThreads" : 4, "workDir" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\output\", "subSet" : 0, "sampleOpt" : "SHUFFLE", "randomSeed" : 12345, "numberOfJobs" : 2, "jobListFile" : "F:\EnergyPlus\Test Projrcts\JEPlus-EP Macro-Python-Simlab-PCM thickness and WWR\joblist.txt", "rerunAll" : true, "keepJEPlusFiles" : true, "keepEPlusFiles" : true, "deleteSelectedFiles" : false, "selectedFiles" : "*.dxf *.htm *.mtd *.mdd *.rdd *.shd *.out *.audit *.eio *.idd *.bnd *.ini" } }C:\fakepath\Jason02.jpg

How can I set python script as a parameter in job list file in JEPlus?

i wanna do sensitivity analysis using simlab and JEplus. to do this end, I must make a Job list file. one of my parameters is wwr. I written a python code which can manipulate FenestrationSurface:Detailed. individually, the python code works properly. Also it works so good when i use that as parameter in JEPlus 2.0. But there is a problem, when we want to use that in a job list file, it dose not work???? C:\fakepath\joblist.jpg C:\fakepath\Jason01.jpg C:\fakepath\Jason02.jpg

How can I set python script as a parameter in job list file in JEPlus?

i wanna do sensitivity analysis using simlab and JEplus. to do this end, I must make a Job list file. one of my parameters is wwr. I written a python code which can manipulate FenestrationSurface:Detailed. individually, the python code works properly. Also it works so good when i use that as parameter in JEPlus 2.0. But there is a problem, when we want to use that in a job list file, it dose not work???? C:\fakepath\joblist.jpg C:\fakepath\Jason01.jpg C:\fakepath\Jason02.jpg

How can I set python script as a parameter in job list file in JEPlus?

i wanna do sensitivity analysis using simlab and JEplus. to do this end, I must make a Job list file. one of my parameters is wwr. I written a python code which can manipulate FenestrationSurface:Detailed. individually, the python code works properly. Also it works so good when i use that as parameter in JEPlus 2.0. But there is a problem, when we want to use that in a job list file, it dose not work???? C:\fakepath\joblist.jpg C:\fakepath\Jason01.jpg C:\fakepath\Jason02.jpg