spike_analysiscoreReaderSmr

ReaderSmr

class spike_analysis.core.ReaderSmr(path, analogsignal_id=0, stim_times_channel=None, min_rel_time=None, max_rel_time=None)

A class for reading smr-files and accessing stimulus times and voltage traces.

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

  • analogsignal_id (int) – The ID of the analog signal to read.

  • stim_times_channel (str) – The name of the channel containing the stimulus times.

  • min_rel_time (float) – The minimum relative time to include in the voltage traces.

  • max_rel_time (float) – The maximum relative time to include in the voltage traces.

Attributes:

path

The path to the smr-file.

Type:

str

analogsignal_id

The ID of the analog signal to read.

Type:

int

stim_times_channel

The name of the channel containing the stimulus times.

Type:

str

min_rel_time

The minimum relative time to include in the voltage traces.

Type:

float

max_rel_time

The maximum relative time to include in the voltage traces.

Type:

float

t

The time points of the voltage traces.

Type:

numpy.ndarray

v

The voltage values of the traces.

Type:

numpy.ndarray

stim_times

The times of the stimuli.

Type:

list

t_start

The start time of the voltage traces.

Type:

float

t_end

The end time of the voltage traces.

Type:

float

Methods:

get_voltage_traces()

Get the time points and voltage values of the traces.

get_stim_times()

Get the times of the stimuli.

get_serialize_dict()

Get a dictionary containing the attributes of the ReaderSmr object.