File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -367,8 +367,7 @@ def wsmi(
367367 if n_channels < 2 :
368368 raise ValueError (
369369 f"At least 2 channels are required for connectivity computation, "
370- f"but only { n_channels } channels available after excluding "
371- f"bad channels."
370+ f"but only { n_channels } channels are available."
372371 )
373372
374373 logger .info (
@@ -544,13 +543,13 @@ def wsmi(
544543 for conn_idx , (i , j ) in enumerate (indices_list ):
545544 # wSMI computation only fills upper triangle, so swap indices if i > j
546545 if i > j :
547- result_conn_data [epoch_idx , conn_idx ] = (
548- result_epoched [ epoch_idx , j , i ]
549- )
546+ result_conn_data [epoch_idx , conn_idx ] = result_epoched [
547+ epoch_idx , j , i
548+ ]
550549 else :
551- result_conn_data [epoch_idx , conn_idx ] = (
552- result_epoched [ epoch_idx , i , j ]
553- )
550+ result_conn_data [epoch_idx , conn_idx ] = result_epoched [
551+ epoch_idx , i , j
552+ ]
554553
555554 # Create connectivity object with prepared data
556555 if average :
You can’t perform that action at this time.
0 commit comments