sparkle.run package¶
Submodules¶
sparkle.run.abstract_acquisition module¶
sparkle.run.acquisition_manager module¶
sparkle.run.calibration_runner module¶
sparkle.run.chart_runner module¶
sparkle.run.list_runner module¶
sparkle.run.microphone_calibration_runner module¶
sparkle.run.protocol_model module¶
-
class
sparkle.run.protocol_model.ProtocolTabelModel(parent=None)[source]¶ -
-
insert(stim, position)[source]¶ Inserts a new stimulus into the list at the given position
Parameters: - stim (
StimulusModel) – stimulus to insert into protocol - position (int) – index (row) of location to insert to
- stim (
-
remove(position)[source]¶ Removes the test at position from the protocol
Parameters: position (int) – index of stimulus to remove
-
setCalibration(db_boost_array, frequencies, frange)[source]¶ Sets calibration for all tests
See
StimulusModel
-
test(row)[source]¶ Gets a test by index
Parameters: row (int) – index number of test Returns: StimulusModel
-
verify(windowSize=None)[source]¶ Verify that this protocol model is valid. Return 0 if sucessful, a failure message otherwise
Parameters: windowSize (float) – acquistion window size (seconds), to check against duration, check is not performed is None provided Returns: 0 (int) for success, fail message (str) otherwise
-