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 #71 from Aarhus-Psychiatry-Research/bokajgd/issue70
Browse files Browse the repository at this point in the history
fix: remove shak_code + operator check
  • Loading branch information
bokajgd authored Oct 18, 2022
2 parents 026a6fa + f97aee8 commit 27cd938
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/psycop_feature_generation/loaders/raw/load_admissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ def admissions(
pd.DataFrame: Dataframe with all physical visits to psychiatry. Has columns dw_ek_borger, timestamp and value (length of admissions in days).
"""

if bool(shak_code) != bool(shak_sql_operator):
raise ValueError(
"shak_code and shak_sql_operator must both be set or both be None.",
)

# SHAK = 6600 ≈ in psychiatry
d = {
"LPR3": {
Expand Down
5 changes: 0 additions & 5 deletions src/psycop_feature_generation/loaders/raw/load_visits.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ def physical_visits(
pd.DataFrame: Dataframe with all physical visits to psychiatry. Has columns dw_ek_borger and timestamp.
"""

if bool(shak_code) != bool(shak_sql_operator):
raise ValueError(
"shak_code and shak_sql_operator must both be set or both be None.",
)

# SHAK = 6600 ≈ in psychiatry
d = {
"LPR3": {
Expand Down

0 comments on commit 27cd938

Please sign in to comment.