elephant.test.test_sta module

Tests for the function sta module

class elephant.test.test_sta.sfc_TestCase_new_scipy(methodName='runTest')[source]

Bases: unittest.case.TestCase

Methods

setUp()[source]
test_incompatible_spiketrain_analogsignal()[source]
test_non_binned_spiketrain_input()[source]
test_non_matching_input_binning()[source]
test_output_frequencies()[source]
test_short_spiketrain()[source]
test_signal_dimensions()[source]
test_spike_field_coherence_perfect_coherence()[source]
test_start_stop_times_out_of_range()[source]
test_wrong_input_type()[source]
class elephant.test.test_sta.sfc_TestCase_old_scipy(methodName='runTest')[source]

Bases: unittest.case.TestCase

Methods

setUp()[source]
class elephant.test.test_sta.sta_TestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Methods

setUp()[source]
test_all_spiketrains_empty()[source]
test_analog_signal_of_wrong_type()[source]

Analog signal given as list, but must be AnalogSignal

test_empty_analogsignal()[source]
test_forgotten_AnalogSignal_argument()[source]
test_impossible_window()[source]
test_more_spiketrains_than_analogsignals_forbidden()[source]
test_one_smaller_nrspiketrains_smaller_nranalogsignals()[source]

Number of spiketrains between 1 and number of analogsignals

test_one_spiketrain_empty()[source]

Test for one empty SpikeTrain, but existing spikes in other

test_only_one_spike()[source]

The output should be the same as the input

test_spike_earlier_than_analogsignal()[source]
test_spike_later_than_analogsignal()[source]
test_spike_triggered_average_with_n_spikes_on_constant_function()[source]

Signal should average to the input

test_spike_triggered_average_with_shifted_sin_wave()[source]

Signal should average to zero

test_spiketrain_of_list_type_in_wrong_sense()[source]
test_spiketrain_of_nonlist_and_nonspiketrain_type()[source]
test_usage_of_spikes()[source]
test_window_borders_as_complex_numbers()[source]
test_window_larger_than_signal()[source]
test_wrong_window_endtime_unit()[source]
test_wrong_window_starttime_unit()[source]