OOPS
|
Functions | |
def | line_diff (line1, line2, lnum, ftol, idif) |
Variables | |
file_run = open(sys.argv[1], "r") | |
file_ref = open(sys.argv[2], "r") | |
ftol = float(sys.argv[3]) | |
idif = int(sys.argv[4]) | |
file_runref = open(str(sys.argv[1])+".ref","w") | |
lines_ref = file_ref.readlines() | |
rennm = re.compile('(^\D+[\d]*[\D]*$)') | |
reflt = re.compile('(^[\D]*?[-]?\d+\.\d+(?:[e][+-]?[\d]+)?[\,]?$)') | |
reint = re.compile('(^[-]?\d+[\,]?$)') | |
redat = re.compile('(^\d{4}[-]\d{2}[-]\d{2}[T]\d{2}[:]\d{2}[:]\d{2}[Z][\:]?$)') | |
reflte = re.compile('([+-]?\d+\.\d+(?:[e][+-]?[\d]+)?)') | |
reinte = re.compile('([+-]?\d+)') | |
int | refline = 0 |
int | error = 0 |
bool | testfound = False |
line_strip = line_run[line_run.find('Test : '):] | |
def | lineerror = line_diff(line_strip,lines_ref[refline],refline+1,ftol,idif) |
def compare.line_diff | ( | line1, | |
line2, | |||
lnum, | |||
ftol, | |||
idif | |||
) |
Definition at line 31 of file compare.py.
int compare.error = 0 |
Definition at line 168 of file compare.py.
compare.file_ref = open(sys.argv[2], "r") |
Definition at line 137 of file compare.py.
compare.file_run = open(sys.argv[1], "r") |
Definition at line 136 of file compare.py.
compare.file_runref = open(str(sys.argv[1])+".ref","w") |
Definition at line 142 of file compare.py.
compare.ftol = float(sys.argv[3]) |
Definition at line 138 of file compare.py.
compare.idif = int(sys.argv[4]) |
Definition at line 139 of file compare.py.
compare.line_strip = line_run[line_run.find('Test : '):] |
Definition at line 174 of file compare.py.
Definition at line 177 of file compare.py.
compare.lines_ref = file_ref.readlines() |
Definition at line 145 of file compare.py.
compare.redat = re.compile('(^\d{4}[-]\d{2}[-]\d{2}[T]\d{2}[:]\d{2}[:]\d{2}[Z][\:]?$)') |
Definition at line 159 of file compare.py.
int compare.refline = 0 |
Definition at line 167 of file compare.py.
compare.reflt = re.compile('(^[\D]*?[-]?\d+\.\d+(?:[e][+-]?[\d]+)?[\,]?$)') |
Definition at line 153 of file compare.py.
compare.reflte = re.compile('([+-]?\d+\.\d+(?:[e][+-]?[\d]+)?)') |
Definition at line 162 of file compare.py.
compare.reint = re.compile('(^[-]?\d+[\,]?$)') |
Definition at line 156 of file compare.py.
compare.reinte = re.compile('([+-]?\d+)') |
Definition at line 163 of file compare.py.
compare.rennm = re.compile('(^\D+[\d]*[\D]*$)') |
Definition at line 150 of file compare.py.
bool compare.testfound = False |
Definition at line 169 of file compare.py.