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

AssertionError caught but not actually handled #57

Open
jethror1 opened this issue Sep 28, 2021 · 0 comments
Open

AssertionError caught but not actually handled #57

jethror1 opened this issue Sep 28, 2021 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@jethror1
Copy link
Collaborator

AssertionError caught when generating single stats to ensure no double counting of regions, but no error is actually raised so will just continue:

try:
# map threshold arg to function since same is passed to all, then
# use imap to pass each df to worker to generate stats
stats_w_arg = partial(single.cov_stats, thresholds=thresholds)
pool_output = pool.imap_unordered(stats_w_arg, split_dfs)
except AssertionError:
# more than one region for each exon found => exit
pool.close()
pool.terminate()
else:
cov_stats = pd.concat(pool_output, ignore_index=True)

Not a huge issue as it will raise a NameError when trying to split the dataframe that should have been returned from the pool so won't continue with partial data, but needs fixing

@jethror1 jethror1 added the bug Something isn't working label Sep 28, 2021
@jethror1 jethror1 added this to the v2.0.0 milestone Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant