tools Package

Set of tools for interacting with Brain data.

convert_braindata Module

Tools module for conversion of brain data ot the BrainData HDF5 format.

class brain.tools.convert_braindata.ConvertBrainData(htk_raw=None, htk_processed=None, output=None, print_status=True, **kwargs)

Bases: object

Class used for conversion of brain data to the BrainData HDF5 format.

__dict__ = <dictproxy object at 0x111727da8>
__init__(htk_raw=None, htk_processed=None, output=None, print_status=True, **kwargs)

Create the conversion object and define all input arguments.

Parameters:
  • htk_raw – List of string of the location of all raw htk ECoG recordings.
  • htk_processed – List of strings of the locations of all processed htk ECoG recordings.
  • output – The output data file.
  • print_status – Boolean indicating whether read status should printed to standard out
  • kwargs – Unused. Specified only to catch any illegal arguments.
__module__ = 'brain.tools.convert_braindata'
__weakref__

list of weak references to the object (if defined)

convert()

Execute the conversion of the data based on the arguments defined by the instance variables (see __init__ )

log_settings()

Print file convert settings to standard out using print.

static parse_arguments(argv=None)

Parse all input arguments for the data conversion.

Parameters:argv – The list of the input arguments. sys.argv is used by default if argv is set to None (default value is None)
Returns:The function returns a tuple with the following components:
  • arg_dict : Dictionary with the arguments for ConvertBrainData
  • arg_error: Boolean indicating whether an error occurred during parsing of arguments
  • logging_level: The level at which logging should be performed
static print_help()

Print user help to standard out using print.

Table Of Contents

Previous topic

readers Package

Next topic

Format Specifications

This Page