Skip to content

Commit

Permalink
pylint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GabSal123 committed Mar 1, 2024
1 parent 908e6a9 commit 037780b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data_collection/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ def check_if_valid_name(gene,folder_path,raise_exception=False):
correct_symbol = False
if not correct_symbol:
os.remove(folder_path+f"{gene}.txt")
print(f"Symbol: {gene} does not exist in the LOVD database")
if raise_exception:
raise DownloadError(f"Symbol: {gene} does not exist in the LOVD database")
else:
print(f"Symbol: {gene} does not exist in the LOVD database")



def download_gene_lovd(gene_list:list,folder_path,raise_exception = False):
Expand All @@ -321,4 +321,4 @@ def download_gene_lovd(gene_list:list,folder_path,raise_exception = False):
for gene in gene_list:
url = f"https://databases.lovd.nl/shared/download/all/gene/{gene}"
get_file_from_url(url,folder_path+f'/{gene}.txt')
git check_if_valid_name(gene,folder_path,raise_exception)
check_if_valid_name(gene,folder_path,raise_exception)

0 comments on commit 037780b

Please sign in to comment.