Skip to content

fix: handle world volume as requested part in npdet_to_dot#71

Open
wdconinc wants to merge 3 commits into
mainfrom
fix/npdet-to-dot-world-volume-part
Open

fix: handle world volume as requested part in npdet_to_dot#71
wdconinc wants to merge 3 commits into
mainfrom
fix/npdet-to-dot-world-volume-part

Conversation

@wdconinc
Copy link
Copy Markdown
Contributor

Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.

When the world volume name is passed as a part filter to npdet_to_dot, all level-1 children should qualify as being within that subtree. Previously the traversal logic only matched level-1 nodes against the requested part names, so specifying the world volume name produced an empty graph. This fix pre-checks whether the world volume itself is among the requested parts and, if so, marks every level-1 child as matching.

What is the urgency of this PR?

  • High (please describe reason below)
  • Medium
  • Low

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Optimization (issue #__)
  • Updated documentation
  • other: __

Please check if any of the following apply

  • This PR introduces breaking changes. Please describe changes users need to make below.
  • This PR changes default behavior. Please describe changes below.
  • AI was used in preparing this PR. Please describe usage below.

GitHub Copilot was used to create the commit and open this PR.

When the world volume name is passed as a part filter in npdet_to_dot,
all level-1 children should qualify as within that subtree. Previously,
the traversal logic only matched level-1 nodes against the requested
part names, so specifying the world volume name produced an empty graph.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 29, 2026 21:14
@wdconinc wdconinc enabled auto-merge (squash) May 29, 2026 21:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes npdet_to_dot “part mode” traversal so that when the world volume name is provided as a requested part, the tool correctly includes all level-1 children as being inside that subtree (previously producing an empty graph).

Changes:

  • Pre-checks whether the world volume name is included in the requested part filters.
  • When the world is requested, treats every level-1 child as qualifying for traversal under the selected max depth.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/tools/src/npdet_to_dot.cxx Outdated
Comment thread src/tools/src/npdet_to_dot.cxx
@wdconinc wdconinc requested a review from a team May 29, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants