Skip to content

Adding ability to query for adjacent volumes. - #60

Merged
gonuke merged 2 commits into
mainfrom
adj-vols
Dec 11, 2025
Merged

Adding ability to query for adjacent volumes.#60
gonuke merged 2 commits into
mainfrom
adj-vols

Conversation

@pshriwise

Copy link
Copy Markdown
Member

Adding a convenience property here to gather adjacent volumes from a given volume.

@gonuke gonuke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One very mild suggestion...

Comment thread src/pydagmc/dagnav.py Outdated
Comment on lines +709 to +710
if vol != self:
adjacent_vols.add(vol)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since this is a set - is it simpler to just add everything and then remove the current volume at the end?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Tracks for me! Just updated.

@gonuke gonuke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks @pshriwise

@gonuke
gonuke merged commit 4afa678 into main Dec 11, 2025
1 check 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.

2 participants