spike_analysiscoreReaderLabView

ReaderLabView

class spike_analysis.core.ReaderLabView(path, stim_times=None, sampling_rate=32000, scale=100, apply_filter=False)

A class for reading LabView binary data files and accessing stimulus times and voltage traces.

Data is read using spike_analysis.core.read_labview_junk1_dat_files(). If apply_filter, a highpass filter is applied to the data using spike_analysis.core.highpass_filter().

Parameters:
  • path (str) – The path to the LabView file.

  • stim_times (str) – list of stimulus times.

  • sampling_rate (int) – The sampling rate of the data.

  • scale (int) – Scales the data with this value.

  • apply_filter (bool) – Whether to apply a highpass filter to the data.

Attributes:

path

The path to the smr-file.

Type:

str

stim_times

The times of the stimuli.

Type:

list

sampling_rate

The sampling rate of the data.

Type:

int

scale

Scales the data with this value.

Type:

int

apply_filter

Whether to apply a highpass filter to the data.

Type:

bool

t

The time points of the voltage traces.

Type:

numpy.ndarray

v

The voltage values of the traces.

Type:

numpy.ndarray

t_start

The start time of the voltage traces.

Type:

float

t_end

The end time of the voltage traces.

Type:

float

Methods:

get_stim_times()

Get the times of the stimuli.

get_voltage_traces()

Get the time points and voltage values of the traces.

get_serialize_dict()

Get a dictionary containing the attributes of the ReaderLabView object.