Skip to content

Ingest Spectra SKILL - #66

Draft
ying2212 wants to merge 2 commits into
astrodbtoolkit:mainfrom
ying2212:ingest-spectra-skill
Draft

ying2212 wants to merge 2 commits into
astrodbtoolkit:mainfrom
ying2212:ingest-spectra-skill

Conversation

@ying2212

Copy link
Copy Markdown
Collaborator

Adds new skill astrodb-ingest-spectra/ to generate and run scripts for ingesting spectra using astrodb_utils.spectra.ingest_spectrum

Address #26

Includes:

  • references/ingest_spectrum_api.md — API signatures and warnings for spectrum helpers
  • scripts/ingest_spectra.py — reference template (generated scripts are saved to astrodb-ingest-artifacts/)
  • evals/evals.json — 7 evaluate cases based on BONES archive data

Key Behaviors

  • Runs check_spectrum_plottable and find_spectra before ingestion to validate the Spectra composite key:
    source, regime, mode, obs_date, and reference
  • Rows with a missing/unparseable obs_date are flagged and reported instead of guessed,
    since it's part of the primary key and can't be null
  • Requires a permalink for the spectrum (any cloud storage works — no hosting pattern is hardcoded); local paths are optional
  • Script ends with a total ingested/skipped summary block.

@ying2212
ying2212 marked this pull request as draft July 14, 2026 18:01
@ying2212

ying2212 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator Author

Draft:

  • Run evals.json
  • Bones ingestion testing run against bones-astrodb
  • Add Step 0 / workflow.md logging

ingest_spectrum already handles duplicate detection internally. Simplify skip-reason tracking and update docs/evals to match.
@kelle kelle linked an issue Jul 20, 2026 that may be closed by this pull request
@kelle kelle mentioned this pull request Aug 25, 2026
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.

Ingest spectra skill

1 participant