Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #201 from Aarhus-Psychiatry-Research/skema_2_witho…
Browse files Browse the repository at this point in the history
…ut_nutrition

fix: add skema_2_without_nutrition again
  • Loading branch information
sarakolding authored Mar 14, 2023
2 parents 505ea4d + 685c5cb commit 8dcf0df
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/psycop_feature_generation/loaders/raw/load_coercion.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,30 @@ def skema_2(
)


@data_loaders.register("skema_2_without_nutrition")
def skema_2_without_nutrition(
n_rows: Optional[int] = None,
unpack_to_intervals: Optional[bool] = False,
unpack_freq: Optional[str] = "D",
) -> pd.DataFrame:
coercion_types_list = [
{
"coercion_type": "Af legemlig lidelse",
},
{
"coercion_type": "Medicinering",
},
{
"coercion_type": "ECT",
},
]

return _concatenate_coercion(
coercion_types_list=coercion_types_list,
n_rows=n_rows,
)


# magtanvendelse
@data_loaders.register("skema_3")
def skema_3(
Expand Down

1 comment on commit 8dcf0df

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
src/psycop_feature_generation/loaders/raw
   load_coercion.py1025249%36–82, 104–125, 137–146, 161, 176, 190, 204, 218, 234–243, 258–273, 287–299, 312–332, 350, 364, 378, 392, 406, 420, 434, 448, 462, 476, 490
TOTAL159788944% 

Tests Skipped Failures Errors Time
14 0 💤 0 ❌ 0 🔥 3.172s ⏱️

Please sign in to comment.