From fb9108862ef7452a5201d8c70c315c1b5b98e722 Mon Sep 17 00:00:00 2001 From: Magdalena Dorfner Date: Wed, 5 Jun 2019 09:44:39 +0200 Subject: [PATCH] Suppress NaturalNameWarning while saving the output (fix #245) * include tables package in def save of saveload.py * suppress NaturalNameWarning --- urbs/saveload.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/urbs/saveload.py b/urbs/saveload.py index f6cb93cc..d6ab7d0d 100644 --- a/urbs/saveload.py +++ b/urbs/saveload.py @@ -28,8 +28,11 @@ def save(prob, filename): Nothing """ import warnings + import tables warnings.filterwarnings('ignore', category=pd.io.pytables.PerformanceWarning) + warnings.filterwarnings('ignore', + category=tables.NaturalNameWarning) if not hasattr(prob, '_result'): prob._result = create_result_cache(prob)