SignalProcessingManager

class managers.signalprocessing.SignalProcessingManager

Available methods:

Method name  
transform_signal() static method
static transform_signal(tosignal=None, chosenmodel=None, recordings=None)

Transforms the recorded ‘response’ signal.

Keyword Arguments:

Key Value type
chosenmodel instantiated NEURON based model
recordings
  • dictionary of the form
  • {"time": [list], "response": [list], "stimulus": [list]}
tosignal string; “spikes”

Returned value: dictionary; region-name for key whose value is the transformed signal

Use case:

Let’s first set up as follows

>> sm = SimulationManager()

>> rm = RecordManager()

>> sp = SignalProcessingManager()

>> rec = {"time": None, "response": None, "stimulus": None}

>> sm.prepare_model_NEURON (parameters, modelX)

>> stimuli_list = sm.stimulate_model_NEURON (stimparameters = currparam, modelsite = modelX.cell.soma)

>> rec["time"], rec["response"], rec["stimulus"] = rm.prepare_recording_NEURON(modelX)

>> sm.engage_NEURON()

Then to transform the analog signals into spike, do

>> spikes = sp.transform_signal( chosenmodel = modelX, recordings = rec, tosignal = 'spikes' )

NOTE: Currently only tosignal="spikes" is supported.