-
Notifications
You must be signed in to change notification settings - Fork 576
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: marker size issue in plot_connectome #2185 #2186
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2186 +/- ##
==========================================
+ Coverage 92.34% 92.35% +<.01%
==========================================
Files 149 149
Lines 18867 18872 +5
Branches 2302 2300 -2
==========================================
+ Hits 17423 17429 +6
- Misses 924 925 +1
+ Partials 520 518 -2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I know that it is hard if not impossible to test. You confirm that it solves #2185 ?
not really, the scattered points are a PathCollection in the matplotlib axis |
although I agree it may not be worth the trouble |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I edited as suggested!
thanks! |
Yes, I was thinking about that. In the docs of ```plot_connectome``` the ```marker_size``` is a defined as scalar or array_like, so I supposed that it is not a list.
BTW I can edit it quickly.
that would be great. a list would be considered acceptable for "array-like"
|
List and numpy array accepted
Co-Authored-By: jeromedockes <jerome@dockes.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks a lot @robbisg !
It was a pleasure @jeromedockes !! Thank all of you for developing this package!! |
An entry in whats_new under Fixes section for 0.6.0a |
THis is almost complete, we need to correct the Flake8 stylistic erro. It is the last entry if you click on details for TravisCI. I am reproducing the log here for convenience:
This means that the blank lines indicated here contain spaces or tab characters. These should be removed. |
@kchawla-pi I hope now it's ok. If not, can you suggest me the edit? Thank you! ;) |
Hey @robbisg |
Hey yeah, in the next set of change you did most of the formatting fix. There's only one remaining. In nilearn/plotting/displays.py:419:15 (line 419, position 15), that line is not indented with spaces that are multiple of 4. Fix that to satisfy Flake8. marker_size = np.asarray(marker_size)[relevant_coords] The indentation is 14 spaces long, so make it a multiple of 4, while keeping it at the appropriate level. In your commit message, explain why the change was made, for example "Fixed improper indentation" . Git can already tell us which files were changed and what changes were made to the code. |
…nt_modify_fetch_dev * 'master' of https://github.com/nilearn/nilearn: Verbose doc building to ease tracking of progress & diagnose stalls (nilearn#2203) New conda env is created once conda path has been activated Conda environment is created for full-builds Refactor CircleCI config for reduced redundancy (nilearn#2204) Installation should fail on Python < 3.5 (nilearn#2198) [MRG] Add get data function (nilearn#2172) fix error when colorscale given boolean array (nilearn#2193) remove is_valid filter (nilearn#2169) Moved new entries to next release FIX: marker size issue in plot_connectome nilearn#2185 (nilearn#2186) Updated Appveyor status badge Run tests on local Windows machines & Azure Pipelines (nilearn#2191) Updated requirements list for devs (nilearn#2190) Update azure-pipelines.yml for Azure Pipelines Release Nilearn 0.6.0 alpha (nilearn#2164) Making fetch_localizer_button_task backwards compatibile (nilearn#2182) [DOC] Update whats_new to reference nilearn#2013 (Merging of several examples) (nilearn#2183)
…smooth-image * 'master' of https://github.com/nilearn/nilearn: (25 commits) Add testing for Nilearn setup & install & Fix the broken dependency installation (nilearn#2201) Fix uniform ball cloud test for sklearn >= 0.22 (nilearn#2175) MAINT: sklearn Deprecations (nilearn#2219) DOC: title in bold [DOC] Add note about decreasing memory usage (nilearn#2223) Rel 060b0 (nilearn#2208) Nilearn 0.6.0b0 release (nilearn#2206) Fixed the redundant & missing test case in merged PR nilearn#2035 (nilearn#2205) Modify fetch_development_fmri to fetch adults or children (nilearn#2035) Verbose doc building to ease tracking of progress & diagnose stalls (nilearn#2203) New conda env is created once conda path has been activated Conda environment is created for full-builds Refactor CircleCI config for reduced redundancy (nilearn#2204) Installation should fail on Python < 3.5 (nilearn#2198) [MRG] Add get data function (nilearn#2172) fix error when colorscale given boolean array (nilearn#2193) remove is_valid filter (nilearn#2169) Moved new entries to next release FIX: marker size issue in plot_connectome nilearn#2185 (nilearn#2186) Updated Appveyor status badge ...
fixes #2185