Skip to content

fix: ensure aggregator helper results include datasets#221

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/autolens-results-aggregator-valid-dataset
Jun 9, 2026
Merged

fix: ensure aggregator helper results include datasets#221
Jammy2211 merged 1 commit into
mainfrom
feature/autolens-results-aggregator-valid-dataset

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Fixes the results aggregator release failures by making the shared quick-fit result reusable only when it contains the image/dataset.fits artifact required by ImagingAgg. Stale or incompatible output/results_folder contents are regenerated, and aggregator scripts now pass the test-mode-aware results_path into Aggregator.from_directory.

Scripts Changed

  • scripts/guides/results/_quick_fit.py — validates reusable helper output by checking for **/image/dataset.fits; removes incompatible helper output before regenerating.
  • scripts/guides/results/aggregator/data_fitting.py — checks for a valid helper dataset and scrapes results_path.
  • scripts/guides/results/aggregator/models.py — checks for a valid helper dataset and scrapes results_path.
  • scripts/guides/results/aggregator/queries.py — uses the same valid-helper guard and results_path scrape directory.
  • scripts/guides/results/aggregator/samples_via_aggregator.py — uses the same valid-helper guard and results_path scrape directory.
  • scripts/guides/results/aggregator/galaxies_fits.py — uses the valid-helper guard before resuming the helper fit.
  • scripts/guides/results/aggregator/samples.py — uses the valid-helper guard before resuming the helper fit.

Test Plan

  • scripts/guides/results/aggregator/data_fitting.py passes with the PyAutoBuild repro environment.
  • scripts/guides/results/aggregator/models.py passes with the PyAutoBuild repro environment.
  • python ../PyAutoBuild/autobuild/run_python.py autolens scripts/guides/results/aggregator --report-dir /tmp/pyautobuild-autolens-results-aggregator passes all aggregator scripts.

@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jun 9, 2026
@Jammy2211 Jammy2211 merged commit 256ce20 into main Jun 9, 2026
6 checks passed
@Jammy2211 Jammy2211 deleted the feature/autolens-results-aggregator-valid-dataset branch June 9, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant