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 -0600
Seen: 450 times
Last updated: Aug 30 '22
How to close the OPF output using API? [closed]
PSSE custom output device with python
Dynamic simulation output channel
How to get psse output to Excel?
Monitor more than one channel a time during Dynamic Simulation
How to output file into .xls or .txt ?
Is there a way to assign states to output channels without knowing the state index/number?
Do you mean result files from dynamic simulations (.out) or any other kind of output from PSSE?
Yes exactly dynamic simultions .out