Skip to content
Snippets Groups Projects
Commit fa1e2689 authored by chad.hanna's avatar chad.hanna
Browse files

inspiral.py: allow a shortcut if gracedb far threshold less than or equal to zero

parent 85eacfeb
No related branches found
No related tags found
No related merge requests found
......@@ -500,7 +500,11 @@ class GracedBWrapper(object):
gracedb_ids = []
# no-op short circuit
if self.far_threshold is None or not last_coincs:
# NOTE the value is tested for less than or equeal to zero so
# that people can disable it through the web interface by
# setting e.g., -1. None is also less than zero so this works
# out.
if self.far_threshold <= 0 or not last_coincs:
return gracedb_ids
coinc_inspiral_index = last_coincs.coinc_inspiral_index
......
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