Skip to content
Snippets Groups Projects
Commit 300a8553 authored by ChiWai Chan's avatar ChiWai Chan
Browse files

horizon.py: fix duplicated class name.

parent 32a9c2d2
No related branches found
No related tags found
1 merge request!114Plot horizon distance from ranking statistics
This commit is part of merge request !114. Comments created here will be created in the context of that merge request.
......@@ -25,7 +25,7 @@ from matplotlib import pyplot
from gstlal import far
from gstlal.plots import util as plotutil
from gstlal.psd import read_psd, HorizonDistance
from gstlal.psd import read_psd, HorizonDistance as calc_horizon_distance
class UnknownExtensionError(Exception):
......@@ -105,7 +105,7 @@ class HorizonDistance:
psds = read_psd(f, verbose = verbose)
for ifo, psd in psds.items():
if psd is not None:
horizon_history_dict[ifo].update({int(psd.epoch): HorizonDistance(10., 2048., psd.deltaF, 1.4, 1.4)(psd, 8.)[0]})
horizon_history_dict[ifo].update({int(psd.epoch): calc_horizon_distance(10., 2048., psd.deltaF, 1.4, 1.4)(psd, 8.)[0]})
return cls(horizon_history_dict, verbose=verbose)
@staticmethod
......
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