Skip to content

Commit ea8fe5c

Browse files
authored
Merge pull request #33 from Brain-Modulation-Lab/enh/reports-graphics
Enh/reports graphics Improved graphs in the reports
2 parents 573b879 + c572063 commit ea8fe5c

11 files changed

Lines changed: 1372 additions & 714 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ dependencies = [
2525
"python-docx>=1.1",
2626
"docx2pdf>=0.1.8",
2727
"pydantic>=2.0",
28-
"pyqtgraph>=0.14.0",
2928
"pyside6>=6.11.0",
29+
"matplotlib>=3.5",
3030
]
3131

3232
[dependency-groups]

src/clinical_dbs_annotator/config/clinical_presets.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"Dystonia": [
3-
"BFMDRS",
4-
"TWSTRS"
5-
],
6-
"ET": [
7-
"FTM-TRS",
8-
"TETRAS"
9-
],
10-
"MDD": [
11-
"MADRS",
12-
"HAM-D",
13-
"BDI-II"
14-
],
152
"OCD": [
163
"Y-BOCS",
174
"Y-BOCS-o",
185
"Y-BOCS-c",
196
"MADRS",
207
"OCI-R"
218
],
9+
"MDD": [
10+
"MADRS",
11+
"HAM-D",
12+
"BDI-II"
13+
],
2214
"PD": [
2315
"MDS-UPDRS",
2416
"UPDRS-III",
2517
"PDQ-39",
2618
"UDysRS"
2719
],
20+
"ET": [
21+
"FTM-TRS",
22+
"TETRAS"
23+
],
24+
"Dystonia": [
25+
"BFMDRS",
26+
"TWSTRS"
27+
],
2828
"TS": [
2929
"YGTSS",
3030
"PUTS",

src/clinical_dbs_annotator/controllers/wizard_controller.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ def export_longitudinal_report(
684684
fmt: str,
685685
parent_widget=None,
686686
sections=None,
687+
clinical_scale_prefs: list | None = None,
687688
) -> None:
688689
"""
689690
Generate a longitudinal report combining data from multiple TSV files.
@@ -693,11 +694,14 @@ def export_longitudinal_report(
693694
scale_prefs: Scale optimization prefs [(name, min, max, mode, custom_value), ...]
694695
fmt: "word" or "pdf"
695696
parent_widget: Parent widget for dialogs
697+
sections: List of section keys to include
698+
clinical_scale_prefs: Clinical scale prefs, same format as scale_prefs
696699
"""
697700
from ..utils.longitudinal_exporter import LongitudinalExporter
698701

699702
exporter = LongitudinalExporter()
700703
exporter.set_scale_optimization_prefs(scale_prefs)
704+
exporter.set_clinical_scale_prefs(clinical_scale_prefs)
701705

702706
if fmt == "word":
703707
exporter.export_to_word(file_paths, parent_widget, sections=sections)

0 commit comments

Comments
 (0)