Repository navigation
use unfiltered spectra of the same realisations as filtered sims instead of theory for TF estimation - #103
Open
susannaaz wants to merge 1 commit into
Open
use unfiltered spectra of the same realisations as filtered sims instead of theory for TF estimation#103susannaaz wants to merge 1 commit into
susannaaz wants to merge 1 commit into
Conversation
…ead of theory for TF estimation
kwolz
reviewed
Nov 25, 2026
adrien-laposta
requested changes
Nov 25, 2026
Collaborator
There was a problem hiding this comment.
I think there is a better way of implementing this change with less disruption to the code.
There are two functions to estimate the TF with the two assumptions in coupling_utils.py
get_transfer_with_error_MTget_transfer_with_error_TM
Both assume that we have a model for the input spectra.
The function we were using before (using measured unfiltered spectra) still exists and is get_transfer_with_error. In master, it is a legacy function (not used anymore).
What I suggest for this new feature
- Adding another option for
tf_ordering(e.g.'TM_sim'or anything else) that will just pick this old function to estimate the TF - This will avoid having a new entry in the paramfile and minimize modifications in the core functions in
coupling_utils.py
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.
since #90 (6191a79, “alternative definition of transfer function”), and independently of TF orderings (MT, TM) additions, the TF is estimated using the filtered sims against the theory input spectrum (
power_law_c_ell), not against the unfiltered spectra of the same realisations. As a result, the sample variance of the TF sims no longer cancels, and the TFs come out noisier bin to bin.Here re-instated option to use the unfiltered sims.