Maintenance will be performed on git.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 24 March 2025 starting at approximately 8:30am PDT. It is expected to take around 30 minutes and there will be several periods of downtime throughout the maintenance. Please address any comments, concerns, or questions to the helpdesk.
Save correct luminosity distance when distance marginalizing
Currently, when we marginalize over distance only the reference distance of 10 Mpc is saved into the result file. Working with result files than might require you to manually dig through the log to figure out the true luminosity distance.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
If I understood the discussion correctly, #323 (closed) is addressing this for time-marginalization.
However, I'm a bit confused by "digging through the results files to figure out the true luminosity distance". What is meant by the true luminosity?
My understanding is that we currently just save the lower bound of the prior. When we should't save anything (since we didn't sample the prior). Then the full fix is to resample and add those to the posterior after the fact. Am I missing something?
This changes the prior that was passed in inadvertently. I think it may end up being confusing and causing unintended behaviour. I just spent about 2 hours tracking down unexpected behaviour that was related to this. I had a loop that was creating GravitationalWaveTransient objects with distance_marginalization=True, however, the prior was defined outside the loop and was hence overwritten after the first iteration.
I also had a problem in which the saved injected value for the luminosity distance in the result object ended up being 10 (i.e. the reference distance for distance marginalization). This may be related to how I wrote this.
To be honest, I don't know any better way of implementing this.
This isn't "inadvertent", we discussed it at some length and decided this was the behaviour we wanted. These might benefit from being better documented to spell this out and how to recover the posteriors.