Open jethror1 opened 3 weeks ago
If an exception is raised by the function called in concurrent.futures here it will incorrectly raise a TypeError:
https://github.com/eastgenomics/eggd_artemis/blob/d31e869494fa3f441ba17657f34c23cb5b40974d/src/eggd_artemis.py#L158-L160
This is from when the concurrent jobs are submitted to the ThreadPool the submission creates a set and not a dict:
https://github.com/eastgenomics/eggd_artemis/blob/d31e869494fa3f441ba17657f34c23cb5b40974d/src/eggd_artemis.py#L135-L137
This instead should store the future as the key and the param input as the value:
concurrent_jobs = { executor.submit(_find, report): report for report in reports }
Relevant example in docs: https://docs.python.org/3/library/concurrent.futures.html#threadpoolexecutor-example
If an exception is raised by the function called in concurrent.futures here it will incorrectly raise a TypeError:
https://github.com/eastgenomics/eggd_artemis/blob/d31e869494fa3f441ba17657f34c23cb5b40974d/src/eggd_artemis.py#L158-L160
This is from when the concurrent jobs are submitted to the ThreadPool the submission creates a set and not a dict:
https://github.com/eastgenomics/eggd_artemis/blob/d31e869494fa3f441ba17657f34c23cb5b40974d/src/eggd_artemis.py#L135-L137
This instead should store the future as the key and the param input as the value:
Relevant example in docs: https://docs.python.org/3/library/concurrent.futures.html#threadpoolexecutor-example