Skip to content

dataset_1d results/database examples: multi-dataset fits, smoke coverage - #42

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/cti-database-examples-drift
Nov 5, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/cti-database-examples-drift

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

The dataset_1d results and database examples run end-to-end again. Part of PyAutoLabs/PyAutoCTI#121 (cti-upkeep phase 3). Library half: PyAutoLabs/PyAutoCTI#122, merged.

  • database/examples/samples.py: each fit is a FactorGraphModel with one entry per dataset, so the script now indexes the dataset before .cti (ml_instances[0][0].cti) and explains why. The with_paths example is switched off, with an explanation, until a PyAutoFit shared-prior path bug is fixed (filed separately).
  • database/examples/models.py: CTIAgg now gives one CTI per dataset for these fits, so the script uses the first (the model is shared).
  • results/examples/samples.py: errors are returned as lists (as_instance=False) and printed. As an instance they broke the model's ordered-timescale rule under a real sampler, and the old code printed an unrelated instance instead.
  • smoke_tests.txt: adds database/start_here.py (it builds the database), database/examples/samples.py and results/examples/samples.py, as the task's Witness requires CI to run them.
  • The 3 notebooks are regenerated, and only those 3 change.

Tests

Tier: glance — auto-merge on green with the Witness passed.

🤖 Generated with Claude Code

…age (PyAutoLabs/PyAutoCTI#121)

- database/examples/samples.py: index the dataset before .cti (each fit is a
  FactorGraphModel with one entry per dataset), with a prose note; the
  with_paths example is switched off until a PyAutoFit shared-prior path bug
  is fixed (it is filed separately)
- database/examples/models.py: CTIAgg gives one CTI per dataset for these fits;
  use the first (the model is shared)
- results/examples/samples.py: errors are returned as lists (as_instance=False)
  and printed. As an instance they broke the ordered-timescale assertion under
  a real sampler, and the old code printed an unrelated instance.
- smoke_tests.txt: + database/start_here.py, database/examples/samples.py,
  results/examples/samples.py (6/6 pass under both profile_smoke and
  profile_release)
- notebooks regenerated for the 3 scripts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 373abf7 into main Nov 5, 2026
7 checks passed
@Jammy2211
Jammy2211 deleted the feature/cti-database-examples-drift branch November 5, 2026 17:30
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