@@ -236,7 +236,6 @@ def test__create_from_list_no_start_stop_units(self):
236236 self .result_spike_check (train1 , st_out , t_start_out , t_stop_out , dtype , units )
237237 self .result_spike_check (train2 , st_out , t_start_out , t_stop_out , dtype , units )
238238
239-
240239 def test__create_from_array (self ):
241240 times = np .arange (10 )
242241 t_start = 0.0 * pq .s
@@ -297,7 +296,6 @@ def test__create_from_array_no_start_stop_units_with_dtype(self):
297296 self .result_spike_check (train1 , st_out , t_start_out , t_stop_out , dtype , units )
298297 self .result_spike_check (train2 , st_out , t_start_out , t_stop_out , dtype , units )
299298
300-
301299 def test__create_from_quantity_array (self ):
302300 times = np .arange (10 ) * pq .ms
303301 t_start = 0.0 * pq .s
@@ -328,7 +326,6 @@ def test__create_from_quantity_array_with_dtype(self):
328326 self .result_spike_check (train1 , st_out , t_start_out , t_stop_out , dtype , units )
329327 self .result_spike_check (train2 , st_out , t_start_out , t_stop_out , dtype , units )
330328
331-
332329 def test__create_from_quantity_array_no_start_stop_units (self ):
333330 times = np .arange (10 ) * pq .ms
334331 t_start = 0.0
@@ -359,7 +356,6 @@ def test__create_from_quantity_array_no_start_stop_units_with_dtype(self):
359356 self .result_spike_check (train1 , st_out , t_start_out , t_stop_out , dtype , units )
360357 self .result_spike_check (train2 , st_out , t_start_out , t_stop_out , dtype , units )
361358
362-
363359 def test__create_from_list_without_units_should_raise_ValueError (self ):
364360 times = range (10 )
365361 t_start = 0.0 * pq .s
@@ -1229,7 +1225,7 @@ def test_correct_times(self):
12291225 self .assertIsInstance (result .array_annotations , ArrayDict )
12301226
12311227 def test_rescaling_units (self ):
1232- train3 = self .train1 .duplicate_with_new_data (signal = (self .train1 .times .magnitude / 1000 ) * pq .millisecond )
1228+ train3 = self .train1 .duplicate_with_new_data (signal = (self .train1 .times .magnitude / 1000 ) * pq .millisecond )
12331229 train3 .segment = self .train1 .segment
12341230 train3 .array_annotate (** self .arr_ann1 )
12351231 # Array annotations merge warning was already tested, can be ignored now
@@ -1495,7 +1491,6 @@ def test_array_annotations(self):
14951491
14961492class TestChanging (unittest .TestCase ):
14971493
1498-
14991494 # now we test default behavior here so change false to None
15001495 def test_change_with_default (self ):
15011496 # Changing spike train also changes data, because it is a view
@@ -1524,7 +1519,6 @@ def test_change_and_rescale_true(self):
15241519 data = [3 , 4 , 5 ] * pq .s
15251520 self .assertRaises (ValueError , SpikeTrain , data , units = "ms" , t_stop = 10000 )
15261521
1527-
15281522 def test_change_and_data_not_quantity (self ):
15291523 # Changing spike train also changes data, because it is a view
15301524 # Data source is array
@@ -1542,7 +1536,6 @@ def test__dtype_change(self):
15421536 data = np .array ([3 , 4 , 5 ])
15431537 self .assertRaises (ValueError , SpikeTrain , data , units = "sec" , t_stop = 101 , dtype = np .float64 )
15441538
1545-
15461539 def test_changing_slice_changes_original_spiketrain (self ):
15471540 # If we slice a spiketrain and then change the slice, the
15481541 # original spiketrain should change.
@@ -1848,7 +1841,7 @@ def test__pretty(self):
18481841
18491842
18501843class TestMiscellaneous (unittest .TestCase ):
1851-
1844+
18521845 def test_as_array (self ):
18531846 data = np .arange (10.0 )
18541847 st = SpikeTrain (data , t_stop = 10.0 , units = "ms" )
0 commit comments