-
Notifications
You must be signed in to change notification settings - Fork 17
SOPFLOW able to read contingencies in PSS/E format #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.