First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Accessing fetch routines using GDIF

asked Sep 21 '0

NLacouve gravatar image

Hello,

I'm new--sorry if this has been asked before (initial search yielded nothing).

I'm using the API "GDIF" to compare the model differences between a working case and another .sav case. The API guide says you can access the results "via the internally accessible fetch routines DIFTXT, DIFBUS, DIFBRN, DIF3WN, DIF2DC, DIFMDC and DIFFCT."

How do you call these fetch routines using psspy? I've tried: psspy.DIFBUS() and psspy.fetch('DIFBUS').

Both produce errors saying that there is no module named 'DIFBUS' or 'fetch.' I'm sure this is easy, just can't find it documented anywhere. Please help!

Comments

From the API Manual 1.85 GDIF entry: Usage is: call to GDIFAPI with APIOPT = 0; multiple calls to fetch routines; optionally, repeat of above steps for different Saved Case and/or subsystem; final call to GDIFAPI with APIOPT = 1. Step 2 ("multiple calls to fetch routines") is the subject of my Q.

NLacouve gravatar imageNLacouve (Sep 21 '0)

1 answer

Sort by » oldest newest most voted
0

answered Sep 21 '0

perolofl gravatar image

Unfortunately, the python recording of activity GDIF is not working (33.12.2). I propose you try activity DIFF instead. Start recording and perform the activity from GUI (File - Compare…).

Open and study the created python script in a texteditor, and read about diff in API manual.

link

Comments

Thanks, I think your recommendation using DIFF might offer a useable workaround to get lists of Branches/BUs status differences. Though I'd much prefer programmatically to access the memory directly in the way that these mysterious "fetch routines" supposedly offer.

NLacouve gravatar imageNLacouve (Sep 21 '0)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Sep 21 '0

Seen: 165 times

Last updated: Sep 21 '20