Skip to content

Commit

Permalink
Update predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutterley committed Sep 27, 2024
1 parent d958a5b commit 6ec4e47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyTMD/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 427 in pyTMD/predict.py

View check run for this annotation

Codecov / codecov/patch

pyTMD/predict.py#L426-L427

Added lines #L426 - L427 were not covered by tests

# complete list of minor constituents
minor_constituents = ['2q1', 'sigma1', 'rho1', 'm1b', 'm1',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 6ec4e47

Please sign in to comment.