carputils
Doxygen code documentation for the python framework controlling openCARP
Namespaces | Variables
svgecg2txt File Reference

Namespaces

 bin.svgecg2txt
 Converts single ECG trace in Inkscape SVG format to text format.
 

Variables

float bin.svgecg2txt.PX2MM = 0.264583
 
int bin.svgecg2txt.MM2MS = 1000./25.
 
int bin.svgecg2txt.MM2MV = 1./10.
 
 bin.svgecg2txt.parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter)
 
 bin.svgecg2txt.help
 
 bin.svgecg2txt.args = parser.parse_args()
 
 bin.svgecg2txt.indx = args.input.find('.svg')
 
 bin.svgecg2txt.svgfile = args.input[:indx]
 
 bin.svgecg2txt.txtfile = svgfile
 
 bin.svgecg2txt.line = fp.readline()
 
 bin.svgecg2txt.transform = line.split('"')[1]
 
 bin.svgecg2txt.data = line.split('"')[1]
 
 bin.svgecg2txt.position = np.array([0, 0])
 
list bin.svgecg2txt.trace = []
 
 bin.svgecg2txt.move = np.array([int(v) for v in move.split(',')])
 
list bin.svgecg2txt.t = [float(v.strip()) for v in transform.split(',')]