Package gmisclib :: Module xwaves_lab
[frames] | no frames]

Module xwaves_lab

source code

Reads label files produced by ESPS xwaves. Writes labels files that ESPS xwaves can read.

Functions
 
read(filename, loose=0)
read in .lab files produced by ESPS xlabel.
source code
 
start_stop(d, dropfirst=False)
Converts data in (end_time, label) format to (t_start, t_stop, label)
source code
 
end_marks(d, beglabel, delta=0.001, interlabel=None)
Converts data in a (start, stop, label) format to (end_time, label).
source code
 
write(fd, header, data)
Expects data in [(t, label), ...] form.
source code
Variables
  __package__ = 'gmisclib'

Imports: os, sys, die, DataError, NoSuchFileError, DataOutOfOrderError, BadFileFormatError, Error


Function Details

read(filename, loose=0)

source code 

read in .lab files produced by ESPS xlabel. returns (header, data). Data = [(time, label), ...]. Note that leading or trailing spaces in the label are removed.

end_marks(d, beglabel, delta=0.001, interlabel=None)

source code 

Converts data in a (start, stop, label) format to (end_time, label). It introduces extra labels if neccessary. A beginning label is required, to mark the start of the first segment.