| |
Methods defined here:
- __init__(self, all_file, fixation_file, media_offset=(0, 0))
- Args:
all_file: a string containing the filename of the 'All-Data.tsv'
file output by the Tobii software.
fixation_file: a string containing the filename of the
'Fixation-Data.tsv' file output by the Tobii software.
media_offset: the coordinates of the top left corner of the window
showing the interface under study. (0,0) if the interface was
in full screen (default value)
Yields:
a Recording object
- process_rec(self, segfile=None, scenelist=None, aoifile=None, aoilist=None, prune_length=None, require_valid_segs=True, auto_partition_low_quality_segments=False)
- Processes the data for one recording (i.e, one complete experiment session)
Args:
segfile: If not None, a string containing the name of the segfile
with segment definitions in following format:
<Scene_ID> <Segment_ID> <start time> <end time>
e.g.:
s1 seg1 0 5988013
With one segment definition per line
scenelist: If not None, a list of Scene objects
*Note: At least one of segfile and scenelist should be not None
aoifile: If not None, a string containing the name of the aoifile
with definitions of the "AOI"s.
aoilist: If not None, a list of "AOI"s.
*Note: if aoifile is not None, aoilist will be ignored
$$$ Daria: if both aoifile and aoilist are none AOIs are ignored
prune_length: If not None, an integer that specifies the time
interval (in ms) from the beginning of each Segment in which
samples are considered in calculations. This can be used if,
for example, you only wish to consider data in the first
1000 ms of each Segment. In this case (prune_length = 1000),
all data beyond the first 1000ms of the start of the "Segment"s
will be disregarded.
require_valid_segs: a boolean determining whether invalid "Segment"s
will be ignored when calculating the features or not. default = True
auto_partition_low_quality_segments: a boolean flag determining whether
EMDAT should automatically split the "Segment"s which have low sample quality
into two new sub "Segment"s discarding the largest invalid sample gap in
the "Segment". default = False
Returns:
a list of Scene objects for this Recording
a list of Segment objects for this recording. This is an aggregated list
of the "Segment"s of all "Scene"s in the Recording
|