docs: simple JSON/FITS result loading entry point in guides/results#65
Merged
docs: simple JSON/FITS result loading entry point in guides/results#65
Conversation
Restructure guides/results/ to present two distinct result-loading paths: the new top-level start_here.py covers direct .json/.fits loading from the output folder (fast, in-memory), while the former start_here.py is moved into a renamed aggregator/ folder to document the memory-efficient generator-based workflow. Both entry points cross-link to explain the trade-off. modeling.py gains a __Loading From Output Folder__ section with a tracer.json / tracer.fits example pointing to the new guide. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…tence Tracer.from_json / Galaxies.from_json are not valid APIs — objects are deserialised via autoconf.dictable.from_json. Also guard the modeling.py example with Path.exists() so it no-ops under PYAUTO_SKIP_FIT_OUTPUT=1 (used in smoke tests) while still running after a normal fit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
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
scripts/guides/results/start_here.pydemonstrating the fast, in-memory way to load a completed fit from theoutput/folder using.json(Tracer, Model, Samples) and.fits(Imaging) files.scripts/guides/results/examples/→scripts/guides/results/aggregator/and rewrite itsstart_here.pyintro as the memory-efficient, generator-based path for multi-fit workflows.__Loading From Output Folder__section toscripts/imaging/modeling.pyshowing how to loadtracer.json/tracer.fitsviasearch.paths.output_path(no hardcoded hash). Guarded withPath.exists()so it's smoke-test safe.results/examplespath references across guides.Scripts Changed
scripts/imaging/modeling.pyscripts/guides/results/start_here.py(new)scripts/guides/results/aggregator/*(moved fromexamples/)scripts/guides/results/database/start_here.pyscripts/guides/units/cosmology.py,scripts/guides/tracer.pyTest Plan
modeling.pyend-to-end withn_like_max=5000; all loadable files produced.autoconf.dictable.from_jsonloadstracer.jsonandmodel.json.PYAUTO_SKIP_FIT_OUTPUT=1(existence guard).Companion: PyAutoLabs/autogalaxy_workspace#30