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

How to set jEPlus parameter with Python?

asked 1 year ago

TommasoVerdier's avatar

updated 1 year ago

I am currently working on jEPlus 2.0 and I need to set a parameter (P1) which depends on the value of another parameter (P2) by an IF clause.

The script is very simple, if pv type (P1) is "Mono", the pv price (P2) is gonna be 65 while if the type is "Poly" the price is 48. I am able to get the values of P1 from jEPlus (using sys.argv), however I do not understand how to "send back" the value from python to jEPlus, so that @@P2@@ in the .idf takes that value.

I wonder if there is any specific function to do that (I checked on .sys guide but could not find).

Thank you very much for your help.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 1 year ago

TommasoVerdier's avatar

I found the solution following tutorial under section "Use Eppy" of the following link: https://www.jeplus.org/wiki/doku.php?...

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 1 year ago

Seen: 166 times

Last updated: Nov 14 '23