@@ -151,54 +151,6 @@ def test_sinusoidal_generator_with_spike_recorder(gen_model, num_threads, indivi
151151 assert all (np .array_equal (spikes_all_nrns [0 ], right ) for right in spikes_all_nrns [1 :])
152152
153153
154- @pytest .mark .skipif_missing_threads ()
155- @pytest .mark .parametrize ("gen_model" , gen_models )
156- @pytest .mark .parametrize ("individual_spike_trains" , [False , True ])
157- @pytest .mark .parametrize ("num_threads" , [1 , 2 ])
158- def test_sinusoidal_generator_with_multimeter (gen_model , num_threads , individual_spike_trains ):
159- """
160- Test multimeter recording with both true and false ``individual_spike_trains``.
161-
162- The test builds a network with ``num_threads x 4`` parrot neurons that
163- receives spikes from the specified sinusoidal generator. A ``multimeter`` is
164- then connected to the generator and the system is simulated. The test ensures
165- that a ``multimeter`` can be connected to record the rate, independent of
166- ``individual_spike_tains``. Since only a single trace should be returned,
167- the test checks that the multimeter recording contains the expected number
168- of data points.
169- """
170-
171- nest .local_num_threads = num_threads
172- T_sim = 100.0
173-
174- nest .SetDefaults (
175- gen_model ,
176- {
177- "rate" : 100 ,
178- "amplitude" : 50.0 ,
179- "frequency" : 10.0 ,
180- "individual_spike_trains" : individual_spike_trains ,
181- },
182- )
183-
184- nrns_per_thread = 4
185- total_num_nrns = num_threads * nrns_per_thread
186-
187- parrots = nest .Create ("parrot_neuron" , total_num_nrns )
188- sspg = nest .Create (gen_model )
189- mm = nest .Create ("multimeter" , {"record_from" : ["rate" ]})
190-
191- nest .Connect (sspg , parrots )
192- nest .Connect (mm , sspg )
193-
194- nest .Simulate (T_sim )
195-
196- # Check that times and rates contain ndata points
197- expected_ndata = T_sim - 1
198- assert len (mm .events ["times" ]) == expected_ndata
199- assert len (mm .events ["rate" ]) == expected_ndata
200-
201-
202154@pytest .mark .parametrize ("gen_model" , gen_models )
203155def test_sinusoidal_generator_rate_profile (gen_model ):
204156 """
0 commit comments