Skip to content

Commit

Permalink
add logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalt committed Aug 27, 2022
1 parent a603a36 commit 349b5f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rawdata/code/preproc/042-gen_ic_audio_mi_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def main(cfg: Config) -> None:
audio_env = retreive_audio_envelope(raw, cfg.audio_ch, cfg.dsamp_sfreq)
ica = read_ica(cfg.input.ica)
ica_env = retreive_ics_envelope(ica, raw, cfg.dsamp_sfreq, cfg.ica_muscle_band_filt)
logger.info("Computing mutual info.")
mi = mutual_info_regression(ica_env.T, np.squeeze(audio_env))
logger.info("Done")

fig_mi = gen_mi_scores_figure(ica, mi, np.nonzero(mi > cfg.mi_thresh)[0], len(ica_env))
report.add_figure(fig_mi, title="Muscle - audio MI")
Expand Down

0 comments on commit 349b5f7

Please sign in to comment.