Conversation
…lts/start_here Replace the flat-bullet `__Output Folder__` block in every modeling tutorial (imaging, interferometer, ellipse) with a comprehensive directory-tree `__Output Folder Layout__` block adapted per data type, using galaxies.json rather than the autolens-specific tracer.json. Restructure scripts/guides/results/start_here.py so the model-fit runs first and simple-loading uses `result_path = search.paths.output_path` instead of a hardcoded `<unique_hash>` placeholder. Strengthen the aggregator section intro to frame it as a peer first-class tool (generator-based, used by the workflow makers), preserving all aggregator narrative. Fix latent `af.SamplesNest.from_csv` API bug uncovered now that the path resolves to a real folder. Companion to PyAutoLabs/autolens_workspace#124.
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.
Summary
Companion to PyAutoLabs/autolens_workspace#124 — the same two paired documentation improvements applied to the autogalaxy modeling tutorials:
Comprehensive output folder layout. Every
modeling.pytutorial (imaging,interferometer,ellipse) replaces the brief flat-bullet__Output Folder__description with a full directory-tree__Output Folder Layout__block, adapted per data type and usinggalaxies.jsonrather than the autolens-specifictracer.json.results/start_here.pyno longer needs a<unique_hash>placeholder in code. The model-fit now runs once at the top of the file (mirroring_quick_fit.py/aggregator/samples.py), and the simple-loading section reaches results viaresult_path = search.paths.output_path. Users no longer have to hand-edit a 32-character identifier into the script before it runs.The aggregator section keeps all its existing narrative. Its intro is rewritten to frame it as a first-class peer tool — generator-based, used by the
csv_maker/png_maker/fits_makerworkflow tools — rather than a "many fits" fallback.Tracking issue: PyAutoLabs/autolens_workspace#124.
Scripts Changed
scripts/imaging/modeling.py— replaced__Output Folder__flat-bullet with full directory-tree__Output Folder Layout__block (galaxies-not-tracer, no source-plane)scripts/interferometer/modeling.py— same treatment, adapted for visibility/uv-plane products (dirty_images.fits)scripts/ellipse/modeling.py— same treatment, adapted for ellipse-fit products (ellipse.jsoninstead ofgalaxies.json)scripts/guides/results/start_here.py— restructured: model-fit now runs first; simple-loading usessearch.paths.output_pathinstead of a hardcoded<unique_hash>Path; aggregator intro rewritten to frame it as a peer tool (generator-based, used by workflow tools); fixed pre-existing latentaf.SamplesNest.from_csv→from_tableAPI bug uncovered once the path resolved to a real folderTest Plan
python3 compile()syntax check passes for all 4 modified scriptsscripts/guides/results/start_here.pyruns end-to-end underPYAUTO_TEST_MODE=2 PYAUTO_SMALL_DATASETS=1 PYAUTO_FAST_PLOTS=1, reaching the finalchi_squared/log_likelihoodprintsscripts/check_sizes.shclean🤖 Generated with Claude Code