A python script to validate and modify several model data in .dyr file ?
I would like to check my dynamic model data against a set of my criteria and modify the values. Since the .dyr file doesn't contain any description, I can create a sort of lookup table to link each model with the description. Is it possible to use a python or perl script to validate the data and apply the changes across all models.
Thanks!
Hi it's totally possible to do this with either Python or Perl, but people generally use Python because you can connect directly into PSS/E instead of just changing the dyr files. Where are the descriptions kept? Do you have any short example you can show?
@JervisW I am trying to write a python script to run through a huge number generator dynamic models and correct the CON values against a set of criteria. I am using functions like mdlind, mdlnam, etc. The issue I am having is I could not store the output of "dlst" command to later verify the CONs
@JervisW and use a function like "change_con" or change_plmod_con" to modify the data and save the changes to the .snp file. It would be great if you could give me some directions to the APIs that I should be using
Can you post some small sample output and highlight the parts you'd like to extract?