Skip to content

sawteeth_source!: exclude_indexes keyword - #321

Merged
jmcclena merged 2 commits into
ProjectTorreyPines:masterfrom
StuartBenjamin:sawteeth_flatten_bootstrap
Nov 11, 2026
Merged

jmcclena merged 2 commits into
ProjectTorreyPines:masterfrom
StuartBenjamin:sawteeth_flatten_bootstrap

Conversation

@StuartBenjamin

@StuartBenjamin StuartBenjamin commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

sawteeth_source! flattens the sources inside the inversion radius, except those in the global IMASdd.index_no_sawtooth (the profile-driven ones, the bootstrap current among them). A new keyword exclude_indexes (default IMASdd.index_no_sawtooth, so nothing changes) lets a caller choose that set, so FUSE can also flatten the bootstrap current without editing the global list (ProjectTorreyPines/FUSE.jl#1204).

Diff: master...StuartBenjamin:IMAS.jl:sawteeth_flatten_bootstrap

🤖 Generated with Claude Code

StuartBenjamin and others added 2 commits October 13, 2026 04:41
Defaults to IMASdd.index_no_sawtooth, so callers can choose which sources are flattened
instead of editing that global list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@nanshi1177 nanshi1177 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.

Looks good: the new keyword only exposes the existing default, so behavior is unchanged.

@StuartBenjamin

Copy link
Copy Markdown
Contributor Author

Closing in favor of always flattening the bootstrap current (ProjectTorreyPines/IMASdd.jl#113), see ProjectTorreyPines/FUSE.jl#1204.

@StuartBenjamin

Copy link
Copy Markdown
Contributor Author

Reopening: ProjectTorreyPines/FUSE.jl#1204 is opt-in again (see ProjectTorreyPines/IMASdd.jl#113) and needs this keyword.

@jmcclena
jmcclena merged commit 41f9860 into ProjectTorreyPines:master Nov 11, 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