sparkle.stim package¶
Subpackages¶
Submodules¶
sparkle.stim.abstract_component module¶
-
class
sparkle.stim.abstract_component.AbstractStimulusComponent[source]¶ Bases:
objectRepresents a single component of a complete summed stimulus
-
amplitude(caldb, calv, atten=0)[source]¶ Calculates the voltage amplitude for this stimulus, using internal intensity value and the given reference intensity & voltage
Parameters:
-
auto_details()[source]¶ A collection of the parameter names that are available to be set using auto-paramter manipulation.
Subclasses should re-implement and add to this list
Returns: dict<dict> – {‘parametername’: {‘label’:str, ‘unit’:str, ‘min’:float, ‘max’:float},}
-
explore= False¶
-
loadState(state)[source]¶ Loads previously saved values to this component.
Parameters: state (dict) – return value from stateDict
-
name= 'unknown'¶
-
protocol= False¶
-
signal(fs, atten, caldb, calv)[source]¶ Creates a signal representation of this stimulus, in the form of a vector of numbers representing electric potential. caldb and calv are used to determine the amplitude of the signal.
Must be implemented by subclass
Parameters:
-