Skip to content

Commit

Permalink
Fix dict default vals to work with dicts. (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Jul 13, 2023
1 parent 77c577c commit 7e9583e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biothings/utils/dataload.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def dict_sweep(d, vals=None, remove_invalid_list=False):
{'site': ['Intron'], 'snp_build': 136}
"""
# set default supported vals for empty values
vals = vals or {".", "-", "", "NA", "none", " ", "Not Available", "unknown"}
vals = vals or [".", "-", "", "NA", "none", " ", "Not Available", "unknown"]
for key, val in list(d.items()):
if val in vals:
del d[key]
Expand Down

0 comments on commit 7e9583e

Please sign in to comment.