Repository navigation
Addressing reviewer comment about QC flags and visualization - #12
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The new figure-generation script can crash when groups exist but none are non-empty due to an unguarded np.concatenate call.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR incorporates the showcase figure generation workflow into the repository, updates the documentation to reference the scripts and discuss QC flagging concepts, and adds a new bibliography entry used by the updated text.
Changes:
- Added a FURY-based script to programmatically render the showcase whole-brain and bundle figures.
- Updated
showcase.mdto link to the rendering script, expand the scripts section, and add QC/outlier-filtering discussion with citations. - Added a new BibTeX reference and applied minor formatting/cleanup updates across Sphinx config and example scripts.
File summaries
| File | Description |
|---|---|
| source/showcase.md | Adds links to the new rendering script, improves script download listing, and expands QC/outlier filtering discussion with citations. |
| source/references.bib | Adds the Levesque2025TractOracle BibTeX entry referenced from showcase.md. |
| source/conf.py | Fixes/normalizes sidebar dict formatting. |
| source/_static/scripts/showcase_resizing.py | Minor comment/log message wording cleanup. |
| source/_static/scripts/showcase_filtering.py | Removes unused import and applies small formatting changes to logging statements. |
| source/_static/scripts/showcase_concatenation.py | Minor docstring/log formatting improvements. |
| source/_static/scripts/generate_showcase_figure.py | Introduces the script that renders the showcase images using FURY offscreen rendering. |
Review details
- Files reviewed: 6/12 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+118
to
+121
| all_grp_indices = np.concatenate( | ||
| [trx.groups[k] for k in trx.groups.keys() if len(trx.groups[k]) > 0] | ||
| ) | ||
| unique_grp_indices = np.unique(all_grp_indices) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
My script to render the image and streamlines is now part of the repo
Added citations and new images
Ran various formatting tools (markdown, python, etc.)