Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Commit bccc8e0

Browse files
authored
Merge pull request #8 from Cezary-Szyszka-Altran/osi-data-check
Initial commit of data checker script
2 parents 79db298 + 3cb38ef commit bccc8e0

File tree

2 files changed

+597
-0
lines changed

2 files changed

+597
-0
lines changed

osi-data-checker/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# The purpose of this package is to compare two sets of osi data.
2+
3+
## General Information
4+
The script was created to detect abnormalities between two different osi files.
5+
The first file is treated as a benchmark for the second file.
6+
7+
8+
## Usage
9+
10+
The script should be run with python 2.7.
11+
The script expect at least two positional arguments. Both of those are osi-encoded messages.
12+
The first file is treated as a benchmark.
13+
14+
It can be run using the following command: <br />
15+
*./compare_data.py input.txt input_2.txt* <br />
16+
Because the parsing of the file takes significant amount of time it is recommended, at least for the initial tests, to restrict number of read messages.
17+
18+
19+
20+
### Command line options
21+
*-h -help* Display help <br />
22+
*-v* "verbose mode", Display more informations <br />
23+
*-rl* "read line limit", Limits the number of lines read from the input file. If set, only firs first X number of osi messages will be read.
24+
25+
26+
### Dependencies
27+
The script is written for python 2.7.
28+
29+
The script uses
30+
- Python modules os, sys, argparse and logging
31+
- numpy http://www.numpy.org/
32+
- termcolor https://pypi.python.org/pypi/termcolor

0 commit comments

Comments
 (0)