Remove deprecated source simulation helpers and migrate tests to generator/injector fixtures#158
Draft
Copilot wants to merge 3 commits into
Draft
Remove deprecated source simulation helpers and migrate tests to generator/injector fixtures#158Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/simonsobs/sotrplib/sessions/1f1e5b34-526e-47d5-b49c-7c86578911b4 Co-authored-by: JBorrow <7839515+JBorrow@users.noreply.github.com>
Agent-Logs-Url: https://github.com/simonsobs/sotrplib/sessions/1f1e5b34-526e-47d5-b49c-7c86578911b4 Co-authored-by: JBorrow <7839515+JBorrow@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove deprecated source generation functions from core.py
Remove deprecated source simulation helpers and migrate tests to generator/injector fixtures
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The deprecated source-generation helpers in
sotrplib/sims/sources/core.pywere still coupling source creation and injection by returning both injected maps and generated sources together. This change removes that legacy path and updates the tests to use the current split model: generate sources first, then inject them.Remove deprecated simulation API
sotrplib/sims/sources/core.pyProcessableMapWithSimulatedSources, which is still used by the injector pathMigrate tests to the current simulation flow
RandomSourceSimulation*helpers with shared fixtures built from:FixedSourceGeneratorPhotutilsSourceInjectortests/conftest.pyto avoid duplicating the same generator/injector wiring across suitesStabilize injected-map fixtures
Affected test suites
tests/test_simulation_pipelinetests/test_forced_photometrytests/test_pointingExample of the new test setup pattern: