Skip to content

Commit

Permalink
last commit should be pd.null not np.null
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchen2 committed Nov 6, 2023
1 parent 28bfa73 commit 2aaff90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qadabra/workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ names = datasets.index
def get_dataset_cfg(wildcards, keys):
d = datasets.loc[wildcards.dataset, keys].to_dict()
if "confounders" in keys:
if not np.isnull(d["confounders"]):
if not pd.isnull(d["confounders"]):
d["confounders"] = d["confounders"].split(";")
else:
d["confounders"] = []
Expand All @@ -20,7 +20,7 @@ def get_songbird_formula(wildcards):
covariate = d["factor_name"]
reference = d["reference_level"]
formula = f"C({covariate}, Treatment('{reference}'))"
if not np.isnull(d["confounders"]):
if not pd.isnull(d["confounders"]):
confounders = d["confounders"].split(";")
formula = f"{formula} + {' + '.join(confounders)}"
return formula
Expand Down

0 comments on commit 2aaff90

Please sign in to comment.