Skip to content

Instantly share code, notes, and snippets.

View jasonzjc's full-sized avatar

Jeff Zhao jasonzjc

  • UIUC, UTK
View GitHub Profile
@jasonzjc
jasonzjc / subsystem_info.py
Created November 12, 2017 21:28 — forked from jtrain/subsystem_info.py
An easy method for getting attribute information from the PSSE subsystem data retrieval api
from itertools import groupby
from operator import itemgetter
attr_type = itemgetter(0)
import psspy
def subsystem_info(name, attributes, sid=-1, inservice=True):
"""
Returns requested attributes from the PSS(r)E subsystem API
for the given subsystem id and subsystem element name.