Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local runs fail with -bat identity -bkey max #76

Closed
chasemc opened this issue Mar 21, 2022 · 1 comment
Closed

Local runs fail with -bat identity -bkey max #76

chasemc opened this issue Mar 21, 2022 · 1 comment

Comments

@chasemc
Copy link
Contributor

chasemc commented Mar 21, 2022

Not going to PR because I haven't looked into how all the code interacts, but

cblaster search -m local -db... -bat identity -bkey max

fails, and it seems to be caused when there's no hits.

python3.9/site-packages/cblaster/formatters.py", line 64, in get_cell_values
    result[index] = key(values)
ValueError: max() arg is an empty sequence

Relevant code:

values = [
getattr(hit, attr) if attr else hit
for subject in subjects
for hit in subject.hits
if hit.query == query
]
result[index] = key(values)

@gamcil
Copy link
Owner

gamcil commented May 9, 2022

Fixed with #77

@gamcil gamcil closed this as completed May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants