OOPS
compare Namespace Reference

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)
 

Function Documentation

◆ line_diff()

def compare.line_diff (   line1,
  line2,
  lnum,
  ftol,
  idif 
)

Definition at line 31 of file compare.py.

Variable Documentation

◆ error

int compare.error = 0

Definition at line 168 of file compare.py.

◆ file_ref

compare.file_ref = open(sys.argv[2], "r")

Definition at line 137 of file compare.py.

◆ file_run

compare.file_run = open(sys.argv[1], "r")

Definition at line 136 of file compare.py.

◆ file_runref

compare.file_runref = open(str(sys.argv[1])+".ref","w")

Definition at line 142 of file compare.py.

◆ ftol

compare.ftol = float(sys.argv[3])

Definition at line 138 of file compare.py.

◆ idif

compare.idif = int(sys.argv[4])

Definition at line 139 of file compare.py.

◆ line_strip

compare.line_strip = line_run[line_run.find('Test : '):]

Definition at line 174 of file compare.py.

◆ lineerror

def compare.lineerror = line_diff(line_strip,lines_ref[refline],refline+1,ftol,idif)

Definition at line 177 of file compare.py.

◆ lines_ref

compare.lines_ref = file_ref.readlines()

Definition at line 145 of file compare.py.

◆ redat

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.

◆ refline

int compare.refline = 0

Definition at line 167 of file compare.py.

◆ reflt

compare.reflt = re.compile('(^[\D]*?[-]?\d+\.\d+(?:[e][+-]?[\d]+)?[\,]?$)')

Definition at line 153 of file compare.py.

◆ reflte

compare.reflte = re.compile('([+-]?\d+\.\d+(?:[e][+-]?[\d]+)?)')

Definition at line 162 of file compare.py.

◆ reint

compare.reint = re.compile('(^[-]?\d+[\,]?$)')

Definition at line 156 of file compare.py.

◆ reinte

compare.reinte = re.compile('([+-]?\d+)')

Definition at line 163 of file compare.py.

◆ rennm

compare.rennm = re.compile('(^\D+[\d]*[\D]*$)')

Definition at line 150 of file compare.py.

◆ testfound

bool compare.testfound = False

Definition at line 169 of file compare.py.