ptypy.io.edfIO.edfread#

ptypy.io.edfIO.edfread(filename, doglob=None, roi=None)#
d,meta = edfread(filename)

reads array in edf file filename and returns it as a numpy array, along with metadata (from header). d and meta are lists if filename is a list of file names.

… = edfread(filename, doglob=True)

reads all matching files if filename contains unix-style wildcards, and returns lists.

… = edfread(filename, doglob=False)

ignores wildcards

… = edfread(filename, doglob=None) [default]

behaves like doglob=True, except that it returns a list only if filename contains wildcards, while doglob=True always returns a list, even if there is only one match.

… = edfread(filename, roi=(RowFrom, RowTo, ColumnFrom, ColumnTo))

returns a region of interest (applied on all files if gobbing or if filename is a list)