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: Improve mask contour visibility #643

Merged
merged 1 commit into from
Jul 12, 2021
Merged

Conversation

mgxd
Copy link
Contributor

@mgxd mgxd commented Jun 11, 2021

Changes the mask outline from blue to red, for increased contrast.

coreg_t2w

Screen Shot 2021-06-11 at 4 53 23 PM

@codecov-commenter
Copy link

codecov-commenter commented Jun 11, 2021

Codecov Report

Merging #643 (fa145c1) into master (a73d6f9) will decrease coverage by 1.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #643      +/-   ##
==========================================
- Coverage   49.02%   48.00%   -1.02%     
==========================================
  Files          45       45              
  Lines        5520     5516       -4     
  Branches      795      791       -4     
==========================================
- Hits         2706     2648      -58     
- Misses       2713     2774      +61     
+ Partials      101       94       -7     
Flag Coverage Δ
masks ?
reportlettests ∅ <ø> (∅)
unittests 48.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
niworkflows/viz/utils.py 8.84% <0.00%> (+0.02%) ⬆️
niworkflows/func/util.py 17.97% <0.00%> (-31.47%) ⬇️
niworkflows/interfaces/header.py 51.70% <0.00%> (-11.12%) ⬇️
niworkflows/interfaces/fixes.py 50.00% <0.00%> (-5.56%) ⬇️
niworkflows/interfaces/reportlets/base.py 42.85% <0.00%> (-1.59%) ⬇️
niworkflows/interfaces/norm.py 25.86% <0.00%> (+0.14%) ⬆️
niworkflows/interfaces/images.py 66.88% <0.00%> (+0.21%) ⬆️
niworkflows/utils/bids.py 75.00% <0.00%> (+0.74%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a73d6f9...fa145c1. Read the comment docs.

@@ -367,7 +367,7 @@ def plot_registration(
display.add_contours(white, colors="b", **kwargs)
display.add_contours(pial, colors="r", **kwargs)
elif contour is not None:
display.add_contours(contour, colors="b", levels=[0.5], linewidths=0.5)
display.add_contours(contour, colors="r", levels=[0.5], linewidths=0.5)
Copy link
Member

Choose a reason for hiding this comment

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

this will clobber the pial (line 368), can we find some better color?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

those should be mutually exclusive, since it's an if elif block no?

@mgxd mgxd merged commit 962c234 into nipreps:master Jul 12, 2021
@mgxd mgxd deleted the fix/reg-contour branch July 12, 2021 12:40
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