Skip to content
Snippets Groups Projects
Commit e5fbc6d7 authored by Leo Tsukada's avatar Leo Tsukada
Browse files

far.py : swap the fill_range at the boundaries of the interpolated

rank_from_far
parent 35d729c7
Branches offline_new-workflow-gwtc4-tmp-w-inj
No related merge requests found
Pipeline #688940 passed with warnings
......@@ -989,7 +989,7 @@ class FAPFAR(object):
# build interpolator.
self.ccdf_interpolator = interpolate.interp1d(ranks, ccdf)
self.rank_from_far_interpolator = interpolate.interp1d(numpy.log(self.far_from_rank(ranks)), ranks, bounds_error=False, fill_value=(self.minrank, self.maxrank))
self.rank_from_far_interpolator = interpolate.interp1d(numpy.log(self.far_from_rank(ranks)), ranks, bounds_error=False, fill_value=(self.maxrank, self.minrank))
@gstlalstats.assert_probability
def ccdf_from_rank(self, rank):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment