bluepyefe.formats.igorpy package

Module contents

Igor reader for binary wave format

class bluepyefe.formats.igorpy.IgorHeader(version, content)[source]

Bases: object

Header metaclass information.

bluepyefe.formats.igorpy.read(filename)[source]

Reads Igor’s (Wavemetric) binary wave format from a file under filename path.

Args:
filename(str):
Returns:
see read_from_handle output
bluepyefe.formats.igorpy.read_from_binary(content)[source]

Reads Igor’s (Wavemetric) binary wave format represented as content string. Basically it applies read_from_handle to content wrapped into a file handler.

Args:
content(str): string
Returns:
see read_from_handle output
bluepyefe.formats.igorpy.read_from_handle(f)[source]

Reads Igor’s (Wavemetric) binary wave format, .ibw or .bwav, files.

Args:
f(file): file handle
Returns:
A tuple of (headerType instance, numpy vector) where headerType instance contains a meta info about the wave and numpy vector contains wave data. numpy vector is writeable.
bluepyefe.formats.igorpy.read_wave_notes(wavenotes)[source]

parse wavenotes to collect them into a dict

Args:
wavenotes(str): string of wavenotes
Returns:
dict of wavenotes