Skip to content

Avoid recalculation of mass_ratio

Gregory Ashton requested to merge fix-minor-issue-in-conversion into master

If using a prior with mass_ratio=1, in the conversion step, the mass ratio gets recalculated. Occasionally, numerical imprecision then results in the square root of a negative number. This avoid recalculating the mass ratio if it already exists, sidestepping the issue.

Merge request reports

Loading