Skip to content

Commit

Permalink
Update dataload.py
Browse files Browse the repository at this point in the history
use set instead of list for better lookup performance
  • Loading branch information
Yao Yao committed Apr 1, 2023
1 parent 554ac56 commit 54ce65b
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 @@ -41,7 +41,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 54ce65b

Please sign in to comment.