Skip to content
Snippets Groups Projects
Commit f9e54b67 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

test: specify comparison tolerance in variable

parent b5ac7051
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ from .. import load_ifo, gwinc
FLO = 5
FHI = 6000
NPOINTS = 3000
FRACTIONAL_TOLERANCE = 0.01
# comparisons to skip
SKIP = [
# 'Seismic',
......@@ -113,7 +114,7 @@ def main():
diff = np.sqrt(mnoise) - np.sqrt(noise)
frac = abs(diff / np.sqrt(noise))
if max(frac) < 0.01:
if max(frac) < FRACTIONAL_TOLERANCE:
continue
logging.warning("EXCESSIVE DIFFERENCE: '{}'".format(name))
......
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