Skip to content

Commit ea5ab9c

Browse files
refactor: update dependencies and clean up code formatting
1 parent d966114 commit ea5ab9c

4 files changed

Lines changed: 9 additions & 21 deletions

File tree

src/clinical_dbs_annotator/config.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from .version import get_version
1111

12-
1312
APP_NAME = "Clinical DBS Annotator"
1413
APP_VERSION = get_version()
1514
ORGANIZATION_NAME = "BML"
@@ -101,7 +100,7 @@
101100
CLINICAL_SCALES_PRESETS: dict[str, list[str]] = {
102101
"OCD": [
103102
"Y-BOCS", # Yale–Brown Obsessive–Compulsive Scale
104-
"Y-BOCS-o", "Y-BOCS-c",
103+
"Y-BOCS-o", "Y-BOCS-c",
105104
"MADRS", # Montgomery–Åsberg Depression Rating Scale
106105
"OCI-R", # Obsessive–Compulsive Inventory – Revised
107106
],
@@ -133,7 +132,7 @@
133132
}
134133

135134
SESSION_SCALES_PRESETS: dict[str, list[tuple[str, str, str]]] = {
136-
"OCD": [
135+
"OCD": [
137136
("Obsessions", "0", "10"),
138137
("Compulsions", "0", "10"),
139138
("Anxiety", "0", "10"),
@@ -150,12 +149,12 @@
150149
("Tremor", "0", "10"),
151150
("Rigidity", "0", "10"),
152151
("Bradykinesia", "0", "10"),
153-
("Dyskinesia", "0", "10"),
152+
("Dyskinesia", "0", "10"),
154153
("Gait / balance", "0", "10"),
155154
("Paresthesia", "0", "10"),
156155
("Speech difficulty", "0", "10"),
157156
],
158-
"ET": [
157+
"ET": [
159158
("Action tremor", "0", "10"),
160159
("Resting tremor", "0", "10"),
161160
("Paresthesia", "0", "10"),

src/clinical_dbs_annotator/models/session_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from datetime import datetime
1010
from pathlib import Path
1111
from typing import TextIO
12-
1312
from zoneinfo import ZoneInfo, ZoneInfoNotFoundError
1413

1514
from ..config import TIMEZONE, TSV_COLUMNS

src/clinical_dbs_annotator/version.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from importlib import metadata
1212
from pathlib import Path
1313

14-
1514
_DIST_NAME = "clinical-dbs-annotator"
1615

1716

@@ -24,12 +23,12 @@ def get_version() -> str:
2423
"""
2524
try:
2625
return metadata.version(_DIST_NAME)
27-
except Exception:
26+
except Exception as e:
2827
init_path = Path(__file__).with_name("__init__.py")
2928
text = init_path.read_text(encoding="utf-8")
3029
m = re.search(r'^__version__\s*=\s*["\']([^"\']+)["\']\s*$', text, flags=re.MULTILINE)
3130
if not m:
32-
raise RuntimeError(f"Could not determine version from {init_path}")
31+
raise RuntimeError(f"Could not determine version from {init_path}") from e
3332
return m.group(1)
3433

3534

uv.lock

Lines changed: 3 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)