Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion vitals/biomarkers/helpers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from typing import TypeVar

import schemas
from pydantic import BaseModel

from vitals.biomarkers import schemas

Biomarkers = TypeVar("Biomarkers", bound=BaseModel)
Units = schemas.PhenoageUnits | schemas.Score2Units

Expand Down
2 changes: 1 addition & 1 deletion vitals/biomarkers/io.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from pathlib import Path

import helpers
from vitals.biomarkers import helpers


def update(input_file: Path) -> dict:
Expand Down
3 changes: 2 additions & 1 deletion vitals/phenoage/compute.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import numpy as np
from biomarkers import helpers, schemas
from pydantic import BaseModel

from vitals.biomarkers import helpers, schemas


class LinearModel(BaseModel):
"""
Expand Down
3 changes: 2 additions & 1 deletion vitals/score2/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"""

import numpy as np
from biomarkers import helpers, schemas
from pydantic import BaseModel

from vitals.biomarkers import helpers, schemas


class ModelCoefficients(BaseModel):
"""
Expand Down