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

Commit

Permalink
fix: remove shak_code + operator check
Browse files Browse the repository at this point in the history
Fixes #70
  • Loading branch information
bokajgd committed Oct 18, 2022
1 parent 026a6fa commit f97aee8
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 f97aee8

Please sign in to comment.