Repository navigation
fix: los_halos simulators drop the silent placeholder coefficients - #681
Merged
Merged
Conversation
…yAutoLens#867) The simulators caught ImportError and fell back to [-1.9, 8.0] / [-3.0, 40.0], which under-count halos by up to 20% at z = 0.9; because the hmf import path was itself broken, the fallback ran every time. LOSSampler now computes the Sheth-Tormen and Ludlow+16 coefficients with colossus and stops with a clear message when colossus is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (PyAutoLens#867) The batched-realisation loop still passed the removed placeholder variables (NameError). The coefficients are now fitted once with colossus and reused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Decision taken (decide-and-flag): the plan on PyAutoLens#867 said the simulators would stop passing coefficients and let |
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.
Part of PyAutoLabs/PyAutoLens#867. Merge after the PyAutoLens PR (PyAutoLabs/PyAutoLens#868).
What
scripts/imaging/features/advanced/los_halos/simulator.pyandsimulator_jax.pycaughtImportErrorand fell back to placeholder coefficients:[-1.9, 8.0]for the mass function and[-3.0, 40.0]for the concentration relation. The hmf import path itself was broken, so the fallback ran every time, with no message insimulator_jax.py. Compared with the real fits, the placeholders under-count halos by up to 20% at z = 0.9, and the concentration placeholder is off by up to 56%.LOSSamplercompute the Sheth-Tormen and Ludlow+16 coefficients with colossus (cosmology_name_colossus="planck15").simulator_jax.py, the batched-realisation loop fits the coefficients once with colossus and reuses them for every seed.pip install colossusorautolens[los]). If it is missing, the run stops with the library's message. There is no silent fallback.Evidence (with the library branch,
PYAUTO_TEST_MODE=2)simulator.py: runs end to end with real coefficients.simulator_jax.py: runs end to end, including the batch of 8 images.simulator.pywith colossus blocked stops with:ImportError: The line-of-sight halo sampler (autolens.lens.los) computes the Sheth-Tormen halo mass function ... with the optional dependencycolossus, which is not installed. Install it withpip install colossus(orpip install autolens[los]) ...scripts/imaging/modeling.pyran: PASS.🤖 Generated with Claude Code