@@ -136,12 +136,12 @@ def reader(filename, comment_rows):
136136 def test_skiprows (self ):
137137 filename = 'test_skiprows.txt'
138138 sample_data = [
139- (- 65 , - 65 , - 65 , 0.5 ),
140- (- 64.8 , - 64.5 , - 64.0 , 0.6 ),
141- (- 64.6 , - 64.2 , - 77.0 , 0.7 ),
142- (- 64.3 , - 64.0 , - 99.9 , 0.8 ),
143- (- 66 , - 64.3 , - 61.0 , 1.4 ),
144- ]
139+ (- 65 , - 65 , - 65 , 0.5 ),
140+ (- 64.8 , - 64.5 , - 64.0 , 0.6 ),
141+ (- 64.6 , - 64.2 , - 77.0 , 0.7 ),
142+ (- 64.3 , - 64.0 , - 99.9 , 0.8 ),
143+ (- 66 , - 64.3 , - 61.0 , 1.4 ),
144+ ]
145145 with open (filename , 'w' ) as datafile :
146146 for row in sample_data :
147147 datafile .write ("\t " .join (map (str , row )) + "\t \n " )
@@ -158,12 +158,12 @@ def test_skiprows(self):
158158 def test_usecols (self ):
159159 filename = 'test_usecols.txt'
160160 sample_data = [
161- (- 65 , - 65 , - 65 , 0.5 ),
162- (- 64.8 , - 64.5 , - 64.0 , 0.6 ),
163- (- 64.6 , - 64.2 , - 77.0 , 0.7 ),
164- (- 64.3 , - 64.0 , - 99.9 , 0.8 ),
165- (- 66 , - 64.3 , - 61.0 , 1.4 ),
166- ]
161+ (- 65 , - 65 , - 65 , 0.5 ),
162+ (- 64.8 , - 64.5 , - 64.0 , 0.6 ),
163+ (- 64.6 , - 64.2 , - 77.0 , 0.7 ),
164+ (- 64.3 , - 64.0 , - 99.9 , 0.8 ),
165+ (- 66 , - 64.3 , - 61.0 , 1.4 ),
166+ ]
167167 with open (filename , 'w' ) as datafile :
168168 for row in sample_data :
169169 datafile .write ("\t " .join (map (str , row )) + "\t \n " )
@@ -174,7 +174,7 @@ def test_usecols(self):
174174 self .assertEqual (len (block .segments [0 ].analogsignals [0 ]), 5 )
175175 self .assertEqual (len (block .segments [0 ].analogsignals ), 1 )
176176 self .assertEqual (signal .units , pq .V )
177-
177+
178178 os .remove (filename )
179179
180180
0 commit comments