Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Accessing Model index values (e.g. VAR num's) from Python

Hello All,

I would like to access the model index numbers (i.e. which VARs, CONs, ICONs, STATEs) for a particular model from Python, but I can't find an API which does that. I know I can use DOCU to get a human-readable report, but it seems silly to parse that report in software to figure out the right VARs for my model. Is there a better way, where PSSE will feed the indices to Python directy as an API output?

Thank you for your help!

Accessing Model index values (e.g. VAR num's) from Python

Hello All,

I would like to access the model index numbers (i.e. which VARs, CONs, ICONs, STATEs) for a particular model from Python, but I can't find an API which does that. I know I can use DOCU to get a human-readable report, but it seems silly to parse that report in software to figure out the right VARs for my model. Is there a better way, where PSSE will feed the indices to Python directy as an API output?

Thank you for your help!

Update: Thanks, the list of commands to fetch model indices (mdlind, dc2auxmind, etc.) was almost what I was looking for. Unfortunately, the model I want to query is an auxiliary signal model not associated with any equipment (a controller at "bus 0"), so doesn't seem to be accessible through any of the equipment-specific commands. I did a little more hunting through the API manual, but I fear I may be out of luck on this one, at least in V32. Additional suggestions are welcome, though!