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 2023-11-14 09:43:17 -0600

TommasoVerdier's avatar

updated 2023-11-14 12:39:00 -0600

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-11-17 06:33:17 -0600

TommasoVerdier's avatar

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

edit flag offensive delete link more

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: 2023-11-14 09:43:17 -0600

Seen: 136 times

Last updated: Nov 14 '23