Skip to content

Commit

Permalink
fix: update download_databases script and refactor database reference…
Browse files Browse the repository at this point in the history
…s in tests
  • Loading branch information
absternator committed Dec 20, 2024
1 parent 54aab40 commit 2bf8cab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Download and extract GPS database
working-directory: ./main
run: |
./scripts/download_databases
./scripts/download_databases --refs
- name: Set up Python 3.9
uses: actions/setup-python@v2
Expand Down
2 changes: 1 addition & 1 deletion tests/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def do_network_internal(p_hash: str):
do_assign_clusters(p_hash)
visualise.network_internal(p_hash,
fs,
full_db_fs,
ref_db_fs,
args,
name_mapping,
species)
4 changes: 2 additions & 2 deletions tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def __init__(self, result):
visualise.microreact(
p_hash,
fs,
setup.full_db_fs,
setup.ref_db_fs,
args,
setup.name_mapping,
setup.species,
Expand Down Expand Up @@ -267,7 +267,7 @@ def __init__(self, result):

setup.do_assign_clusters(p_hash)
visualise.network(
p_hash, fs, setup.full_db_fs, args, setup.name_mapping, setup.species
p_hash, fs, setup.ref_db_fs, args, setup.name_mapping, setup.species
)

for cluster in external_to_poppunk_clusters.keys():
Expand Down

0 comments on commit 2bf8cab

Please # to comment.