Skip to content

Commit cb352bf

Browse files
fbrazaopencode
andcommitted
fix: standardize import statements for package consistency
- Convert relative imports to absolute imports using vitals package prefix - Update imports in biomarkers, phenoage, and score2 modules - Ensure consistent import style across the codebase - Fixes #3 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
1 parent 793a853 commit cb352bf

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

vitals/biomarkers/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from typing import TypeVar
22

3-
import schemas
43
from pydantic import BaseModel
54

5+
from vitals.biomarkers import schemas
6+
67
Biomarkers = TypeVar("Biomarkers", bound=BaseModel)
78
Units = schemas.PhenoageUnits | schemas.Score2Units
89

vitals/biomarkers/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
from pathlib import Path
33

4-
import helpers
4+
from vitals.biomarkers import helpers
55

66

77
def update(input_file: Path) -> dict:

vitals/phenoage/compute.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import numpy as np
2-
from biomarkers import helpers, schemas
32
from pydantic import BaseModel
43

4+
from vitals.biomarkers import helpers, schemas
5+
56

67
class LinearModel(BaseModel):
78
"""

vitals/score2/compute.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"""
77

88
import numpy as np
9-
from biomarkers import helpers, schemas
109
from pydantic import BaseModel
1110

11+
from vitals.biomarkers import helpers, schemas
12+
1213

1314
class ModelCoefficients(BaseModel):
1415
"""

0 commit comments

Comments
 (0)