Skip to content

Commit

Permalink
Merge pull request #328 from OHBA-analysis/matsvanes-patch-1
Browse files Browse the repository at this point in the history
Update src_report.py
  • Loading branch information
matsvanes authored Aug 1, 2024
2 parents 2edca7e + 1dfe1f1 commit c032bf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions osl/report/src_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def gen_html_summary(reportdir, logsdir=None):
flip_table["Session ID"] = [subject_data[i]["fif_id"] for i in range(len(subject_data))]
flip_table["Correlation before flipping "] = np.round(metrics[:,0], decimals=3)
flip_table["Correlation after flipping "] = np.round(metrics[:,1:].max(axis=1), decimals=3)
flip_table["Correlation change (after-before) "] = np.round(flip_table["Correlation after flipping "]-flip_table["Correlation before flipping "], decimals=3)
flip_table.index += 1 # Start indexing from 1
data['signflip_table'] = flip_table.to_html(classes="display", table_id="signflip_tbl")

Expand Down

0 comments on commit c032bf3

Please sign in to comment.