From 28513a2667d2b2d0c78b84059c76bb297dbbfdee Mon Sep 17 00:00:00 2001 From: Jago Date: Fri, 30 Apr 2021 01:52:50 +0100 Subject: [PATCH] suppressed fuzzwuzzy slowness warning --- getgfs/getgfs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/getgfs/getgfs.py b/getgfs/getgfs.py index 2cdb8d1..a3b61da 100644 --- a/getgfs/getgfs.py +++ b/getgfs/getgfs.py @@ -1,13 +1,15 @@ """getgfs - a library for extracting weather forecast variables from the NOAA GFS forecast in a pure python, no obscure dependencies way """ -import requests, json, os, re, dateutil.parser, sys +import requests, json, os, re, dateutil.parser, sys, warnings from datetime import datetime, timedelta import numpy as np from scipy.interpolate import interp1d from .decode import * try: - from fuzzywuzzy import fuzz + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + from fuzzywuzzy import fuzz except: pass