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?
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: Aug 29 '2
Seen: 570 times
Last updated: Aug 30 '22
PSSE output not always going to directed output file
Is there a way to assign states to output channels without knowing the state index/number?
Having trouble plotting wind machine P, Q and slip in dynamic simulations
Zero-Power Output Issue in GE Wind Model for Simulations Longer Than 3.5 Seconds
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