Skip to content

Comments

Adds new route for legacy data lookup#83

Merged
havok2063 merged 7 commits intomainfrom
allspec
Sep 19, 2025
Merged

Adds new route for legacy data lookup#83
havok2063 merged 7 commits intomainfrom
allspec

Conversation

@havok2063
Copy link
Contributor

This PR adds support looking up any legacy sdss spectra available for a given target sdss_id. Adds a new target/legacy endpoint that accepts an sdss_id value that queries the allspec table and returns all matching rows. By default, "legacy" is any sdss_phase < 5, but this is an optional input. Setting phase=0 will return all rows from the allspec table.

Also adds a new AllSpec pydantic response model. And adds new build_legacy_path wrapper function for returning a filepath on disk for legacy data, using the values from an allspec data row as input.

@havok2063 havok2063 self-assigned this Sep 3, 2025
@havok2063 havok2063 added the enhancement New feature or request label Sep 3, 2025
@havok2063 havok2063 merged commit abe4a4a into main Sep 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant