Repository navigation
Censor unbracketed half-power crossings; weight by populated lag range - #44
Merged
Merged
Conversation
Radial lags are one-sided, so the rings at the outer edge of a band keep
only a few short radial lags, and their plateau comes from the azimuthal
slice alone. Such a ring could "cross" half power in its last populated
bin -- a coin flip on one bin -- and report a lag set by the truncation,
not the field. calculate_heuristics then weighted it by the NOMINAL lag
range over that tiny lag, handing the worst-measured ring the largest
weight in the stack. On TW Hya CS this made the empirical null bimodal
in log A and alpha_r (55/45 split decided by the r = 2.19" ring alone).
- half_power_lag(min_bracket=2.0): NaN unless the populated slice
reaches min_bracket x the crossing lag; threaded through
half_power_lags and calculate_heuristics. min_bracket=None reproduces
the old behaviour exactly.
- n_eff weights (calculate_heuristics, reliability_weight('neff')) use
the populated radial range via a new _populated_max_lag.
- Two regression tests on a synthetic edge ring; the halved-plateau
counterfactual in an existing test now passes min_bracket=None.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stub half_power_lags now accepts min_bracket, and the analytic StructureFunctions carry fully populated pair counts so the n_eff weights can read the populated radial lag range. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Radial lags are one-sided, so the rings at the outer edge of a band keep
only a few short radial lags, and their plateau comes from the azimuthal
slice alone. Such a ring could "cross" half power in its last populated
bin -- a coin flip on one bin -- and report a lag set by the truncation,
not the field. calculate_heuristics then weighted it by the NOMINAL lag
range over that tiny lag, handing the worst-measured ring the largest
weight in the stack. On TW Hya CS this made the empirical null bimodal
in log A and alpha_r (55/45 split decided by the r = 2.19" ring alone).
reaches min_bracket x the crossing lag; threaded through
half_power_lags and calculate_heuristics. min_bracket=None reproduces
the old behaviour exactly.
the populated radial range via a new _populated_max_lag.
counterfactual in an existing test now passes min_bracket=None.
🤖 Generated with Claude Code