Skip to content

Addressing reviewer comment about QC flags and visualization - #12

Merged
arokem merged 4 commits into
tee-ar-ex:mainfrom
frheault:main
Sep 9, 2026
Merged

arokem merged 4 commits into
tee-ar-ex:mainfrom
frheault:main

Conversation

@frheault

@frheault frheault commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

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.)

@frheault
frheault requested a lite review from Copilot September 4, 2026 21:17
@frheault frheault changed the title Addressing revier comment about QC flags and visualization Addressing reviewer comment about QC flags and visualization Sep 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.md to 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)
@arokem
arokem merged commit 7134464 into tee-ar-ex:main Sep 9, 2026
2 checks passed
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