@@ -27,15 +27,15 @@ class Annotation():
2727 annotations that are not one of the codes go in the 'aux' field rather than the 'anntype'
2828 field.
2929 """
30- def __init__ (self , recordname , annotator , annsamp , anntype , num = None , subtype = None , chan = None , aux = None , fs = None ):
30+ def __init__ (self , recordname , annotator , annsamp , anntype , subtype = None , chan = None , num = None , aux = None , fs = None ):
3131 self .recordname = recordname
3232 self .annotator = annotator
3333
3434 self .annsamp = annsamp
3535 self .anntype = anntype
36- self .num = num
3736 self .subtype = subtype
3837 self .chan = chan
38+ self .num = num
3939 self .aux = aux
4040 self .fs = fs
4141
@@ -408,7 +408,8 @@ def rdann(recordname, annotator, sampfrom=0, sampto=None):
408408
409409 AT = filebytes [bpi , 1 ] >> 2
410410
411- while (AT > 59 ): # Process any other fields belonging to this annotation
411+ # Process any other fields belonging to this annotation
412+ while (AT > 59 ):
412413
413414 subtype ,bpi ,num ,chan ,cpychan ,cpynum ,aux = proc_extra_fields (AT ,
414415 subtype ,ai ,filebytes ,bpi ,num ,chan ,cpychan ,cpynum ,aux )
@@ -435,7 +436,7 @@ def rdann(recordname, annotator, sampfrom=0, sampto=None):
435436 # Process the fields if there are custom annotation types
436437 allannsyms ,annsamp ,anntype ,num ,subtype ,chan ,aux = proccustomtypes (annsamp ,anntype ,num ,subtype ,chan ,aux )
437438
438- # Apply annotation range (from X to Y)
439+ # Apply annotation range
439440 annsamp ,anntype ,num ,subtype ,chan ,aux = apply_annotation_range (annsamp ,
440441 sampfrom ,sampto ,anntype ,num ,subtype ,chan ,aux )
441442
0 commit comments