Sourcecode
import sys
from RASCH import *
# initialize libRASCH
ra = RASCH()
if not ra:
print "can't initialize libRASCH"
sys.exit()
# open measurement
meas = ra.open_meas(sys.argv[1], 0)
if not meas:
print "can't open measurement", sys.argv[1]
sys.exit()
# get default evaluation
eva = meas.get_def_eval()
if not eva:
print "no evaluation in measurement"
sys.exit()
# get some general infos
[eval_name, n, d] = eva.get_info(info='eval_name')
[eval_add_ts, n, d] = eva.get_info(info='eval_add_timestamp')
[eval_prg, n, d] = eva.get_info(info='eval_program')
print "evaluation", eval_name, "was added at", eval_add_ts, "using the program", eval_prg, "\n"
# list event-properties
evprops = eva.get_evprops()
for elem in evprops:
prop = eva.get_evprop_by_name(elem)
[name, n, d] = prop.get_info(info='eval_prop_name')
[desc, n, d] = prop.get_info(info='eval_prop_desc')
evset = prop.get_evset()
[evset_name, n, d] = evset.get_info(info='eval_set_name')
[num_events, n, d] = evset.get_info(info='eval_set_num_events')
print "event-property", name, "("+desc+") belongs to event-set", evset_name, "and contains", num_events, "events";
Output of the example
evaluation original was added at 27.05.2005 09:28:53 using
the program python
event-property qrs-pos (position of fiducial point of
QRS-complex in sampleunits) belongs to event-set heartbeat
and contains 74 events
event-property qrs-class (classification of QRS complex)
belongs to event-set heartbeat and contains 74 events
event-property qrs-temporal (temporal setting of beat) belongs
to event-set heartbeat and contains 74 events
event-property rri (RR interval) belongs to event-set heartbeat
and contains 74 events
event-property rri-class (classification of RR interval)
belongs to event-set heartbeat and contains 74 events
event-property rri-refvalue (reference rri representing the
current heart-rate) belongs to event-set heartbeat and contains
74 events
event-property rri-num-refvalue (number of rri's used for
calculation of reference value) belongs to event-set heartbeat
and contains 74 events
|