carputils
Doxygen code documentation for the python framework controlling openCARP
|
Converts single ECG trace in Inkscape SVG format to text format. More...
Variables | |
float | PX2MM = 0.264583 |
int | MM2MS = 1000./25. |
int | MM2MV = 1./10. |
parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter) | |
help | |
args = parser.parse_args() | |
indx = args.input.find('.svg') | |
svgfile = args.input[:indx] | |
txtfile = svgfile | |
line = fp.readline() | |
transform = line.split('"')[1] | |
data = line.split('"')[1] | |
position = np.array([0, 0]) | |
list | trace = [] |
move = np.array([int(v) for v in move.split(',')]) | |
list | t = [float(v.strip()) for v in transform.split(',')] |
Converts single ECG trace in Inkscape SVG format to text format.
bin.svgecg2txt.args = parser.parse_args() |
bin.svgecg2txt.data = line.split('"')[1] |
bin.svgecg2txt.help |
bin.svgecg2txt.indx = args.input.find('.svg') |
bin.svgecg2txt.line = fp.readline() |
int bin.svgecg2txt.MM2MS = 1000./25. |
int bin.svgecg2txt.MM2MV = 1./10. |
bin.svgecg2txt.move = np.array([int(v) for v in move.split(',')]) |
bin.svgecg2txt.parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter) |
bin.svgecg2txt.position = np.array([0, 0]) |
float bin.svgecg2txt.PX2MM = 0.264583 |
bin.svgecg2txt.svgfile = args.input[:indx] |
list bin.svgecg2txt.t = [float(v.strip()) for v in transform.split(',')] |
bin.svgecg2txt.trace = [] |
bin.svgecg2txt.transform = line.split('"')[1] |
bin.svgecg2txt.txtfile = svgfile |