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

Fix of Single Location Deconvolution Core Management + Tests #7

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

gordonkoehn
Copy link
Contributor

@gordonkoehn gordonkoehn commented Dec 19, 2024

This PR resolves this issue:

It fixes a bug related to running the deconvolution for a single location with more than one core.

I further introduce more coverage tests specifically for single-location usage of LolliPop.

And ensured that the implemented logging was shown if the deconvolution was run via click cli. Formerly it was not, hence no proper error message was given out.

@gordonkoehn gordonkoehn marked this pull request as ready for review December 19, 2024 09:19
@gordonkoehn gordonkoehn self-assigned this Dec 19, 2024
@gordonkoehn gordonkoehn changed the title Adding PR Testing Suite & Test Coverage Single Location Deconvolution Test Coverage Single Location Deconvolution Dec 19, 2024
@gordonkoehn
Copy link
Contributor Author

These tests rightfully fail as there is a bug in deconvolving a single location with more than one core.

Comment on lines 549 to 560
# check if the number of cores is valid
if n_cores < 1:
logger.ERROR("The number of cores must be at least 1.")
sys.exit(1)
# check if there are more cores than locations
if n_cores > len(locations_list):
logger.warning(
"The number of cores is greater than the number of locations."
)
# adjust the number of cores to the number of locations
n_cores = len(loc)
logger.warning(f"The number of cores has been adjusted to {n_cores}.")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the bug ! The correction of cores was only done if no_loc=TRUE no location was given, this if was just one tab to far intended.

@gordonkoehn gordonkoehn changed the title Test Coverage Single Location Deconvolution Fix of Single Location Deconvolution Core Management & Test Coverage Single Location Deconvolution Dec 19, 2024
@gordonkoehn gordonkoehn changed the title Fix of Single Location Deconvolution Core Management & Test Coverage Single Location Deconvolution Fix of Single Location Deconvolution Core Management + Tests Dec 19, 2024
@gordonkoehn gordonkoehn added the bug Something isn't working label Dec 19, 2024
@gordonkoehn gordonkoehn requested a review from DrYak December 19, 2024 10:38
@gordonkoehn gordonkoehn linked an issue Dec 19, 2024 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Cosmetics in Progression Bar in Deconvolution
1 participant