Skip to content

Commit

Permalink
Second update to download script
Browse files Browse the repository at this point in the history
  • Loading branch information
SGenheden committed Jun 11, 2020
1 parent dfe26d4 commit c9393df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aizynthfinder/tools/download_public_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@


def _download_file(url, filename):
return
with requests.get(url, stream=True) as response:
response.raise_for_status()
total_size = int(response.headers.get("content-length", 0))
Expand Down Expand Up @@ -61,6 +60,7 @@ def main():
exit(1)

with open(os.path.join(path, "config.yml"), "w") as fileobj:
path = os.path.abspath(path)
fileobj.write(
YAML_TEMPLATE.format(
os.path.join(path, FILES_TO_DOWNLOAD["policy_model"]["filename"]),
Expand Down

0 comments on commit c9393df

Please sign in to comment.