Python file to compare output [closed]
Hi, I have different output file that I have to check if they are equal. Is there a quick way maybe with Python?
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
Hi, I have different output file that I have to check if they are equal. Is there a quick way maybe with Python?
One way may be to open both files with dyntools and compare the channel values.
The OUT file is in binary format. To compare two OUT files in python, go to the internet and search for "python binary file compare". One of such links is "https://codereview.stackexchange.com/questions/171003/python-code-that-compares-two-files-byte-by-byte".
BTW, you can compare binary files on any other language and commercial programs are available.
To compare attributes of a OUT file, like difference in channels, use the dyntools module and python code around it. I have not seen yet a tool that do that.
Asked: 2022-08-29 11:02:42 -0500
Seen: 671 times
Last updated: Aug 30 '22
PSSE custom output device with python
Zero-Power Output Issue in GE Wind Model for Simulations Longer Than 3.5 Seconds
Dynamic simulation output channel
How to close the OPF output using API? [closed]
Monitor more than one channel a time during Dynamic Simulation
Having trouble plotting wind machine P, Q and slip in dynamic simulations
whit loves you. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
Do you mean result files from dynamic simulations (.out) or any other kind of output from PSSE?
Yes exactly dynamic simultions .out