From b8ead25cd5df9ce415e183e28d45e0fdd8838bf3 Mon Sep 17 00:00:00 2001 From: Chris Leaman Date: Fri, 7 Dec 2018 11:59:43 +1100 Subject: [PATCH] Disable numpy futurewarnings when running from CLI --- src/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cli.py b/src/cli.py index 210b91f..10b79e4 100644 --- a/src/cli.py +++ b/src/cli.py @@ -11,6 +11,9 @@ import analysis.forecast_twl as forecast_twl import analysis.forecasted_storm_impacts as forecasted_storm_impacts import analysis.observed_storm_impacts as observed_storm_impacts +# Disable numpy warnings +import warnings +warnings.simplefilter(action='ignore', category=FutureWarning) @click.group() def cli():