SOPFLOW able to read contingencies in PSS/E format#111
SOPFLOW able to read contingencies in PSS/E format#111
Conversation
|
@cameronrutherford, in this PR I've added a utility script. I did not see an appropriate place to put it, so made a new directory, |
|
The Python script I've added converts ExaGO/PTI contingency format files to PSS/E format. This was used to generate input to PowerWorld from ExaGO cases. The script should be modified, or another script added, to go the other way. At this time, I don't have time to do that. |
a68de7c to
900f502
Compare
|
@abhyshr there are conflicts with the user manual that don't allow an auto-rebase, but with a re-review and perhaps some more documentation to explain the scripts added this is good to merge. |
|
Was able to build python library using python version 3.12 and version 3.13 does not work. Ran Output: Ran Output: |
maksud
left a comment
There was a problem hiding this comment.
With the minor modification as posted as comments. Also add a note that it works for Python 3.12 as of now.
| sys.stderr.write("%s: %s: error: cannot open\n" % (program, inputfile)) | ||
| exit(2) | ||
| else: | ||
| fd = sys.stdin |
There was a problem hiding this comment.
The python script is waiting for input filename but no indication or console out is provided to let the user know whether the script is working or waiting for user input. Suggesting print usage and return
| sys.stderr.write("%s: %s: error: cannot open\n" % (program, inputfile)) | ||
| exit(2) | ||
| else: | ||
| fd = sys.stdin |
There was a problem hiding this comment.
The python script is waiting for input filename but no indication or console output is provided to let the user know whether the script is working or waiting for user input. Suggesting print usage and return
Merge request type
Relates to
This MR updates
Summary
This PR makes SOPFLOW understand contingencies in PSS/E format. Like SCOPFLOW, the contingency file format is determined by the file extension:
.conindicates PSSE,.contis the ExaGONATIVE(PTI) format.Closes #107.