Ask Your Question

Multi-Line machine data extraction using area id

asked 2024-05-21 13:05:46 -0500

anonymous user


I am not very familiar with the API for PSSE, and I am looking to pull all the machine data from PSSE using Python. I am looking to pull the data based on a specific list of areas.

Is there a way of doing that without knowing all the buses?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2024-05-22 09:18:34 -0500

jconto gravatar image

The psspy API contains functions to do the following (crude) algorithm:

- Gather bus data for all buses in case into a bus list
- Gather generation data for all generators in case into a gen list
- Enter an area loop: for areai in selectedareas:
-    Enter a generator loop:
-        Find index in bus list for generator bus
-        if area in bus record == areai:
-              print generator record + bus record(index)
-        else: continue
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

[hide preview]

Question Tools

1 follower


Asked: 2024-05-21 13:05:46 -0500

Seen: 101 times

Last updated: May 22