|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Determine Klotz curve from (EDV,EDP) pair. More...
Functions | |
| def | parser () |
| def | file_dump (vdat, pdat) |
Variables | |
| float | MMHG2KPA = 0.133322387415 |
| float | KPA2MMHG = 1.0 / MMHG2KPA |
| float | EDVDEFAULT = 110.0 |
| float | EDPDEFAULT = 10.0 |
| xrange = range | |
| def | opts = parser().parse_args() |
| pvtraces = None | |
| csv_file | |
| ttrace = csv_file[:,0].astype('float') | |
| l_index = np.where(ttrace > 0)[0][0] | |
| ptrace = csv_file[:,1].astype('float')[0:l_index] | |
| vtrace = csv_file[:,2].astype('float')[0:l_index] | |
| silent | |
| plot | |
| def | EDV = vtrace[-1] if opts.EDV is None else opts.EDV |
| tuple | EDP = (ptrace[-1] if opts.EDP is None else opts.EDP) * (1.0 if opts.kPa else MMHG2KPA) |
| P = kl.KlotzRelation(EDV, EDP) | |
| float | max_vol = kl.V30(EDV,EDP)*1.1 if pvtraces is None else EDV |
| vdat = np.linspace(0, max_vol, 100) | |
| pdat = P(vdat) | |
| fig = pyplot.figure() | |
| ax = fig.add_subplot(1,1,1) | |
| label | |
| c | |
| marker | |
| loc | |
Determine Klotz curve from (EDV,EDP) pair.
| def bin.klotz.file_dump | ( | vdat, | |
| pdat | |||
| ) |
| def bin.klotz.parser | ( | ) |
| bin.klotz.ax = fig.add_subplot(1,1,1) |
| bin.klotz.c |
| bin.klotz.csv_file |
| tuple bin.klotz.EDP = (ptrace[-1] if opts.EDP is None else opts.EDP) * (1.0 if opts.kPa else MMHG2KPA) |
| float bin.klotz.EDPDEFAULT = 10.0 |
| float bin.klotz.EDV = vtrace[-1] if opts.EDV is None else opts.EDV |
| float bin.klotz.EDVDEFAULT = 110.0 |
| bin.klotz.fig = pyplot.figure() |
| float bin.klotz.KPA2MMHG = 1.0 / MMHG2KPA |
| bin.klotz.l_index = np.where(ttrace > 0)[0][0] |
| bin.klotz.label |
| bin.klotz.loc |
| bin.klotz.marker |
| float bin.klotz.MMHG2KPA = 0.133322387415 |
| def bin.klotz.opts = parser().parse_args() |
| bin.klotz.plot |
| list bin.klotz.pvtraces = None |
| bin.klotz.silent |
| bin.klotz.ttrace = csv_file[:,0].astype('float') |
| bin.klotz.vdat = np.linspace(0, max_vol, 100) |
| bin.klotz.xrange = range |
1.8.13