@@ -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
@@ -332,7 +330,6 @@ def test__create_from_quantity_array_with_dtype(self):
332330 self .result_spike_check (train1 , st_out , t_start_out , t_stop_out , dtype , units )
333331 self .result_spike_check (train2 , st_out , t_start_out , t_stop_out , dtype , units )
334332
335-
336333 def test__create_from_quantity_array_no_start_stop_units (self ):
337334 times = np .arange (10 ) * pq .ms
338335 t_start = 0.0
@@ -367,7 +364,6 @@ def test__create_from_quantity_array_no_start_stop_units_with_dtype(self):
367364 self .result_spike_check (train1 , st_out , t_start_out , t_stop_out , dtype , units )
368365 self .result_spike_check (train2 , st_out , t_start_out , t_stop_out , dtype , units )
369366
370-
371367 def test__create_from_list_without_units_should_raise_ValueError (self ):
372368 times = range (10 )
373369 t_start = 0.0 * pq .s
@@ -1237,7 +1233,7 @@ def test_correct_times(self):
12371233 self .assertIsInstance (result .array_annotations , ArrayDict )
12381234
12391235 def test_rescaling_units (self ):
1240- train3 = self .train1 .duplicate_with_new_data (signal = (self .train1 .times .magnitude / 1000 ) * pq .millisecond )
1236+ train3 = self .train1 .duplicate_with_new_data (signal = (self .train1 .times .magnitude / 1000 ) * pq .millisecond )
12411237 train3 .segment = self .train1 .segment
12421238 train3 .array_annotate (** self .arr_ann1 )
12431239 # Array annotations merge warning was already tested, can be ignored now
@@ -1503,7 +1499,6 @@ def test_array_annotations(self):
15031499
15041500class TestChanging (unittest .TestCase ):
15051501
1506-
15071502 # now we test default behavior here so change false to None
15081503 def test_change_with_default (self ):
15091504 # Changing spike train also changes data, because it is a view
@@ -1532,7 +1527,6 @@ def test_change_and_rescale_true(self):
15321527 data = [3 , 4 , 5 ] * pq .s
15331528 self .assertRaises (ValueError , SpikeTrain , data , units = "ms" , t_stop = 10000 )
15341529
1535-
15361530 def test_change_and_data_not_quantity (self ):
15371531 # Changing spike train also changes data, because it is a view
15381532 # Data source is array
@@ -1550,7 +1544,6 @@ def test__dtype_change(self):
15501544 data = np .array ([3 , 4 , 5 ])
15511545 self .assertRaises (ValueError , SpikeTrain , data , units = "sec" , t_stop = 101 , dtype = np .float64 )
15521546
1553-
15541547 def test_changing_slice_changes_original_spiketrain (self ):
15551548 # If we slice a spiketrain and then change the slice, the
15561549 # original spiketrain should change.
@@ -1856,7 +1849,7 @@ def test__pretty(self):
18561849
18571850
18581851class TestMiscellaneous (unittest .TestCase ):
1859-
1852+
18601853 def test_as_array (self ):
18611854 data = np .arange (10.0 )
18621855 st = SpikeTrain (data , t_stop = 10.0 , units = "ms" )
0 commit comments