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

Mismatched x/y size of background and acquisition should error instead of warn #182

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

talonchandler
Copy link
Collaborator

This PR is an improvement on #181 given a discussion @ziw-liu and I had about errors vs. warnings.

Since recOrder can't recover from mismatched background and acquisition sizes, I have changed this warning to an error. This has the added benefit of making the error message appear to the user directly, instead of the old behavior where we received a downstream numpy error and a less visible warning.

@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2022

Codecov Report

Merging #182 (888d963) into main (329922c) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #182   +/-   ##
=======================================
  Coverage   11.20%   11.21%           
=======================================
  Files          45       45           
  Lines        5987     5985    -2     
=======================================
  Hits          671      671           
+ Misses       5316     5314    -2     
Impacted Files Coverage Δ
recOrder/io/utils.py 0.00% <0.00%> (ø)
recOrder/plugin/widget/main_widget.py 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@deprecated-napari-hub-preview-bot

Preview page for your plugin is ready here:
https://preview.napari-hub.org/mehta-lab/recOrder/182
Created: 2022-09-19T18:58:24.703399

@talonchandler talonchandler merged commit 8c11f72 into main Sep 19, 2022
@talonchandler talonchandler deleted the error-mismatched-bkg-and-img branch September 19, 2022 20:41
@talonchandler talonchandler restored the error-mismatched-bkg-and-img branch September 20, 2022 17:39
@talonchandler talonchandler deleted the error-mismatched-bkg-and-img branch October 1, 2022 18:15
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

Successfully merging this pull request may close these issues.

3 participants