utils.intan.intanutil package

utils.intan.intanutil.data_to_result module

data_to_result(header, data, data_present)[source]

Moves the header and data (if present) into a common object.

utils.intan.intanutil.get_bytes_per_data_block module

get_bytes_per_data_block(header)[source]

Calculates the number of bytes in each 60-sample datablock.

utils.intan.intanutil.notch_filter module

notch_filter(input, fSample, fNotch, Bandwidth)[source]

Implements a notch filter (e.g., for 50 or 60 Hz) on vector ‘input’.

fSample = sample rate of data (input Hz or Samples/sec) fNotch = filter notch frequency (input Hz) Bandwidth = notch 3-dB bandwidth (input Hz). A bandwidth of 10 Hz is recommended for 50 or 60 Hz notch filters; narrower bandwidths lead to poor time-domain properties with an extended ringing response to transient disturbances.

Example: If neural data was sampled at 30 kSamples/sec and you wish to implement a 60 Hz notch filter:

out = notch_filter(input, 30000, 60, 10);

utils.intan.intanutil.qstring module

read_qstring(fid)[source]

Read Qt style QString.

The first 32-bit unsigned number indicates the length of the string (in bytes). If this number equals 0xFFFFFFFF, the string is null.

Strings are stored as unicode.

utils.intan.intanutil.read_header module

read_header(fid)[source]

Reads the Intan File Format header from the given file.

utils.intan.intanutil.read_one_data_block module

read_one_data_block(data, header, indices, fid)[source]

Reads one 60-sample data block from fid into data, at the location indicated by indices.

Module contents