File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -428,20 +428,20 @@ def read_rhd(filename):
428428
429429 version = V ('{major_version}.{minor_version}' .format (** global_info ))
430430
431- # the header size depend on the version :-(
431+ # the header size depends on the version :-(
432432 header = list (rhd_global_header_part1 ) # make a copy
433433
434- if version >= '1.1' :
434+ if version >= V ( '1.1' ) :
435435 header = header + rhd_global_header_v11
436436 else :
437437 global_info ['num_temp_sensor_channels' ] = 0
438438
439- if version >= '1.3' :
439+ if version >= V ( '1.3' ) :
440440 header = header + rhd_global_header_v13
441441 else :
442442 global_info ['eval_board_mode' ] = 0
443443
444- if version >= '2.0' :
444+ if version >= V ( '2.0' ) :
445445 header = header + rhd_global_header_v20
446446 else :
447447 global_info ['reference_channel' ] = ''
@@ -466,14 +466,14 @@ def read_rhd(filename):
466466 sr = global_info ['sampling_rate' ]
467467
468468 # construct the data block dtype and reorder channels
469- if version >= '2.0' :
469+ if version >= V ( '2.0' ) :
470470 BLOCK_SIZE = 128
471471 else :
472472 BLOCK_SIZE = 60 # 256 channels
473473
474474 ordered_channels = []
475475
476- if version >= '1.2' :
476+ if version >= V ( '1.2' ) :
477477 data_dtype = [('timestamp' , 'int32' , BLOCK_SIZE )]
478478 else :
479479 data_dtype = [('timestamp' , 'uint32' , BLOCK_SIZE )]
You can’t perform that action at this time.
0 commit comments