bluepyefe.igorpy

Copyright (c) 2020, EPFL/Blue Brain Project

This file is part of BluePyEfe <https://github.com/BlueBrain/BluePyEfe>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3.0 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Functions

read(filename)

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

read_from_binary(content)

Reads Igor's (Wavemetric) binary wave format represented as content string.

read_from_handle(f)

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

read_wave_notes(wavenotes)

parse wavenotes to collect them into a dict

Classes

IgorHeader(version, content)

Header metaclass information.

class IgorHeader(version, content)[source]

Bases: object

Header metaclass information.

read(filename)[source]

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

Parameters:

filename (str)

Returns:

see read_from_handle output

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.

Parameters:

content (str) – string

Returns:

see read_from_handle output

read_from_handle(f)[source]

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

Parameters:

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.

read_wave_notes(wavenotes)[source]

parse wavenotes to collect them into a dict

Parameters:

wavenotes (str) – string of wavenotes

Returns:

dict of wavenotes