From 6ec4e47d5477048165206a2af22757f0a8348d11 Mon Sep 17 00:00:00 2001 From: tsutterley Date: Thu, 26 Sep 2024 23:47:46 -0700 Subject: [PATCH] Update predict.py --- pyTMD/predict.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyTMD/predict.py b/pyTMD/predict.py index 68a777f8..aac227b6 100644 --- a/pyTMD/predict.py +++ b/pyTMD/predict.py @@ -424,6 +424,7 @@ def _infer_short_period( raise Exception('Not enough constituents for inference') elif (nz < 6): logging.debug('Not enough constituents for inference') + return 0.0 # complete list of minor constituents minor_constituents = ['2q1', 'sigma1', 'rho1', 'm1b', 'm1', @@ -565,6 +566,7 @@ def _infer_long_period( raise Exception('Not enough constituents for inference') elif (nz < 3): logging.debug('Not enough constituents for inference') + return 0.0 # complete list of minor constituents minor_constituents = ['sa', 'ssa', 'sta', 'msm', 'msf',