@@ -813,7 +813,6 @@ def __init__(
813813 sig_name = None ,
814814 comments = None ,
815815 ):
816-
817816 # Note the lack of the 'n_seg' field. Single segment records cannot
818817 # have this field. Even n_seg = 1 makes the header a multi-segment
819818 # header.
@@ -877,7 +876,6 @@ def __eq__(self, other, verbose=False):
877876 return False
878877
879878 for k in att1 .keys ():
880-
881879 v1 = att1 [k ]
882880 v2 = att2 [k ]
883881
@@ -894,7 +892,7 @@ def __eq__(self, other, verbose=False):
894892 and len (v1 ) == len (v2 )
895893 and all (isinstance (e , np .ndarray ) for e in v1 )
896894 ):
897- for ( e1 , e2 ) in zip (v1 , v2 ):
895+ for e1 , e2 in zip (v1 , v2 ):
898896 np .testing .assert_array_equal (e1 , e2 )
899897 else :
900898 if v1 != v2 :
@@ -988,7 +986,6 @@ def _arrange_fields(self, channels, sampfrom, smooth_frames):
988986 # Checksum and init_value to be updated if present
989987 # unless the whole signal length was input
990988 if self .sig_len != self .d_signal .shape [0 ]:
991-
992989 if self .checksum is not None :
993990 self .checksum = self .calc_checksum ()
994991 if self .init_value is not None :
@@ -1136,7 +1133,6 @@ def __init__(
11361133 sig_name = None ,
11371134 sig_segments = None ,
11381135 ):
1139-
11401136 super (MultiRecord , self ).__init__ (
11411137 record_name = record_name ,
11421138 n_sig = n_sig ,
@@ -1203,7 +1199,6 @@ def _check_segment_cohesion(self):
12031199 raise ValueError ("Length of segments must match the 'n_seg' field" )
12041200
12051201 for seg_num , segment in enumerate (self .segments ):
1206-
12071202 # If segment 0 is a layout specification record, check that its file names are all == '~''
12081203 if seg_num == 0 and self .seg_len [0 ] == 0 :
12091204 for file_name in segment .file_name :
0 commit comments