Skip to content

Bugfix to remove_guards()#47

Open
mrhardman wants to merge 1 commit into
mainfrom
remove_guards-bugfix
Open

Bugfix to remove_guards()#47
mrhardman wants to merge 1 commit into
mainfrom
remove_guards-bugfix

Conversation

@mrhardman

Copy link
Copy Markdown

Only call the selector functions within if statements so that we ensure that the "domain" and "yguards" selector labels exist. This avoids a bug where selector_poloidal(self, "yguards") was called where m["MYG"] = 0, so the "yguards" label was an invalid selection, raising a ValueError: Unknown poloidal selection yguards.

This change may not be necessary for the selector_radial().

…re that the "domain" and "yguards" selector labels exist. This avoids a bug where `selector_poloidal(self, "yguards")` was called where m["MYG"] = 0, so the "yguards" label was an invalid selection.
@mrhardman mrhardman requested a review from mikekryjak July 14, 2026 14:37
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