Skip to content

Commit

Permalink
Merge pull request #1052 from aphearin/downman_bugfix
Browse files Browse the repository at this point in the history
Improve convenience of the download manager
  • Loading branch information
aphearin authored Sep 28, 2022
2 parents e27483f + eb64f85 commit 3bba45e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions halotools/sim_manager/download_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def download_processed_halo_table(
(len(close_matches) > 0)
& (len(exact_matches) == 1)
& (ignore_nearby_redshifts is False)
& (overwrite is False)
):

entry = close_matches[0]
Expand Down
4 changes: 2 additions & 2 deletions halotools/sim_manager/tests/test_download_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,10 @@ def test_download_processed_halo_table5(self):
version_name="halotools_v0p4",
redshift=11.7,
dz_tol=200,
overwrite=True,
overwrite=False,
download_dirname="std_cache_loc",
)
substr = "the ``ignore_nearby_redshifts`` to True, or decrease ``dz_tol``"
substr = "you must set the ``overwrite`` keyword argument to True."
assert substr in err.value.args[0]

@pytest.mark.skipif("not APH_MACHINE")
Expand Down

0 comments on commit 3bba45e

Please sign in to comment.