Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!
   

User Forum

All Topics | Topic "WEAP API automate gw node where transmission link loses water to"
Log in to post new messages or reply to existing messages.
 
Author Message
Mr. Wilco Terink

Subject: WEAP API automate gw node where transmission link loses water to   
Posted: 3/3/2022 Viewed: 4498 times
Using the WEAP API through Python:

Is there a way I can automate setting the gw node the transmission link loses water to? I am able to automatically set the percentage like e.g. in 10% in the example below. However, how can I set the “to Groundwater” node the transmission link loses water to? Or is this not possible?

self.WEAP.Branch('Supply and Resources\Transmission Links\to AI_11\from Withdrawal Node 5').Variables('Loss to Groundwater').Expression = 10

Mr. Jack Sieber

Subject: Re: WEAP API automate gw node where transmission link loses water to   
Posted: 3/3/2022 Viewed: 4493 times
This is currently no way using the WEAP API to set or change which groundwater node is linked to a reach. I hope to add this capability in a future version of WEAP.

Jack
Topic "WEAP API automate gw node where transmission link loses water to"