Skip to content

MAINT: Finalize migration of visual interfaces and reports to nireports#1034

Open
oesteban wants to merge 7 commits into
masterfrom
maint/nireports-port-completion
Open

MAINT: Finalize migration of visual interfaces and reports to nireports#1034
oesteban wants to merge 7 commits into
masterfrom
maint/nireports-port-completion

Conversation

@oesteban

Copy link
Copy Markdown
Member

Supersedes #789.

I had to add nireports as a dependency: some *RPT interfaces (e.g., some about ANTS) were not ported, and I think it's because they would trigger a chain effect requiring heavy sections of code to be ported or duplicated with them.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 12b56c3dce

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

'Niworkflows will be deprecating visualizations in favor of a standalone library "nireports".'
from .._deprecated import raise_moved_to_nireports

raise_moved_to_nireports(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Defer hard deprecation until submodule imports resolve

Raising DeprecationError unconditionally in niworkflows.viz.__init__ prevents any niworkflows.viz.<submodule> import from reaching its own module-level deprecation handler, because Python imports the package initializer before loading submodules. In practice, import niworkflows.viz.utils/plots/notebook will always fail here and never show the symbol-specific replacement hints defined in those files, which makes migration guidance incomplete for many existing imports.

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented Feb 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 68.88889% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.21%. Comparing base (6f8243e) to head (fb996c4).
⚠️ Report is 26 commits behind head on master.

Files with missing lines Patch % Lines
niworkflows/_deprecated.py 62.50% 3 Missing and 3 partials ⚠️
niworkflows/reports/core.py 0.00% 2 Missing ⚠️
niworkflows/viz/notebook.py 0.00% 2 Missing ⚠️
niworkflows/viz/plots.py 0.00% 2 Missing ⚠️
niworkflows/viz/utils.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1034      +/-   ##
==========================================
- Coverage   67.13%   66.21%   -0.93%     
==========================================
  Files          54       55       +1     
  Lines        6849     5416    -1433     
  Branches      852      655     -197     
==========================================
- Hits         4598     3586    -1012     
+ Misses       2036     1689     -347     
+ Partials      215      141      -74     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant