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]
allTests()[source]

Gets all tests

Returns:list<StimulusModel>
clear()[source]

Clears all tests from protocol

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
remove(position)[source]

Removes the test at position from the protocol

Parameters:position (int) – index of stimulus to remove
rowCount()[source]

The number of tests in this protocol

Returns:int – test count
setCalibration(db_boost_array, frequencies, frange)[source]

Sets calibration for all tests

See StimulusModel

setReferenceVoltage(caldb, calv)[source]

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

sparkle.run.protocol_runner module

sparkle.run.search_runner module

Module contents