Commit 5d820966 authored by Committed by Riccardo Sturani
Change the behaviour of the final spin fit
Under some very rare circumstances, the final spin formula may give a negative number inside a square root. Previously this was handleded by having a tolerance and just taking the abs of the argument of the square root if it was below tolerance and emitting XLAL_EDOM otherwise. Now, we follow what is done in the final spin python code and simply set the argument inside the square root to 0 if it is <0. A warning is always printed when this is done.
Showing with 8 additions and 27 deletions