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