Skip to content

Sbs cleanup - #29

Merged
InfinityMonkeyAtWork merged 4 commits into
mainfrom
sbs-cleanup
Apr 29, 2026
Merged

Sbs cleanup#29
InfinityMonkeyAtWork merged 4 commits into
mainfrom
sbs-cleanup

Conversation

@InfinityMonkeyAtWork

Copy link
Copy Markdown
Owner

No description provided.

New file: src/trspecfit/utils/sbs.py — worker globals + 4 functions (renamed to drop the leading _ since they're now module-public from trspecfit.py's perspective): extract_sbs_seed_template, prepare_sbs_model_for_slice, sbs_worker_init, sbs_fit_one_slice.

trspecfit.py: −196 lines. Now opens with imports → class Project at line 103 (was 294). Three call sites updated to use usbs.*.

utils/init.py: unchanged — sbs is not added to the package __init__ because eager-importing it triggers a circular import (sbs → fitlib → spectra → mcp while mcp is loading). Same precedent as hdf5. Imported directly via from trspecfit.utils import sbs as usbs.
@InfinityMonkeyAtWork
InfinityMonkeyAtWork merged commit 4d20a96 into main Apr 29, 2026
3 checks passed
@InfinityMonkeyAtWork
InfinityMonkeyAtWork deleted the sbs-cleanup branch April 29, 2026 22:24
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