First time here? Check our help page!
1

How to set jEPlus parameter with Python?

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.

TommasoVerdier's avatar
21
TommasoVerdier
asked 2023-11-14 09:43:17 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2023-11-14 12:39:00 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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

TommasoVerdier's avatar
21
TommasoVerdier
answered 2023-11-17 06:33:17 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments