Skip to content

Commit

Permalink
Reformatted with black
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro committed Apr 3, 2023
1 parent 28862d4 commit cf43c21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tardis/io/atom_data/atom_web_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def download_atom_data(atomic_data_name=None):

if atomic_data_name not in atomic_repo:
raise ValueError(f"Atomic Data name {atomic_data_name} not known")

dst_dir = os.path.join(get_data_dir(), f"{atomic_data_name}.h5")
src_url = atomic_repo[atomic_data_name]["url"]
mirrors = tuple(atomic_repo[atomic_data_name]["mirrors"])
Expand Down
4 changes: 3 additions & 1 deletion tardis/io/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ def download_from_url(url, dst, checksum, src=None, retries=3):

elif checksum != new_checksum and retries > 0:
retries -= 1
logger.warning(f"Incorrect checksum, retrying... ({retries+1} attempts remaining)")
logger.warning(
f"Incorrect checksum, retrying... ({retries+1} attempts remaining)"
)
download_from_url(url, dst, checksum, src, retries)

else:
Expand Down

0 comments on commit cf43c21

Please sign in to comment.