From 3e2a76ed3b2360f64800b7dfab10b61dacdc904a Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Thu, 17 Aug 2017 11:22:51 +0200 Subject: [PATCH] Raise error if SSkyMetric fails --- pyfstat/optimal_setup_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfstat/optimal_setup_functions.py b/pyfstat/optimal_setup_functions.py index 811dece..80a7072 100644 --- a/pyfstat/optimal_setup_functions.py +++ b/pyfstat/optimal_setup_functions.py @@ -214,8 +214,8 @@ def get_Nstar_estimate( fiducial_freq, detectors, detector_weights, detector_motion, ephemeris) except RuntimeError as e: - logging.debug('Encountered run-time error {}'.format(e)) - return None, None, None + logging.warning('Encountered run-time error {}'.format(e)) + raise RuntimeError("Calculation of the SSkyMetric failed") if sky: i = 0 -- GitLab