@@ -135,36 +135,6 @@ def test_unit_id_order_independence(small_sorting_analyzer):
135135 assert quality_metrics_2 [metric ][1 ] == metric_1_data ["#4" ]
136136
137137
138- def _sorting_analyzer_simple ():
139- recording , sorting = generate_ground_truth_recording (
140- durations = [
141- 50.0 ,
142- ],
143- sampling_frequency = 30_000.0 ,
144- num_channels = 6 ,
145- num_units = 10 ,
146- generate_sorting_kwargs = dict (firing_rates = 6.0 , refractory_period_ms = 4.0 ),
147- noise_kwargs = dict (noise_levels = 5.0 , strategy = "tile_pregenerated" ),
148- seed = 2205 ,
149- )
150-
151- sorting_analyzer = create_sorting_analyzer (sorting , recording , format = "memory" , sparse = True )
152-
153- sorting_analyzer .compute ("random_spikes" , max_spikes_per_unit = 300 , seed = 2205 )
154- sorting_analyzer .compute ("noise_levels" )
155- sorting_analyzer .compute ("waveforms" , ** job_kwargs )
156- sorting_analyzer .compute ("templates" )
157- sorting_analyzer .compute ("principal_components" , n_components = 5 , mode = "by_channel_local" , ** job_kwargs )
158- sorting_analyzer .compute ("spike_amplitudes" , ** job_kwargs )
159-
160- return sorting_analyzer
161-
162-
163- @pytest .fixture (scope = "module" )
164- def sorting_analyzer_simple ():
165- return _sorting_analyzer_simple ()
166-
167-
168138def _sorting_violation ():
169139 max_time = 100.0
170140 sampling_frequency = 30000
@@ -576,6 +546,7 @@ def test_calculate_sd_ratio(sorting_analyzer_simple):
576546 test_unit_structure_in_output (_small_sorting_analyzer ())
577547
578548 # test_calculate_firing_rate_num_spikes(sorting_analyzer)
549+
579550 # test_calculate_snrs(sorting_analyzer)
580551 # test_calculate_amplitude_cutoff(sorting_analyzer)
581552 # test_calculate_presence_ratio(sorting_analyzer)
0 commit comments