Skip to content

Commit

Permalink
Suppress NaturalNameWarning while saving the output (fix #245)
Browse files Browse the repository at this point in the history
* include tables package in def save of saveload.py
* suppress NaturalNameWarning
  • Loading branch information
maledo committed Jun 5, 2019
1 parent 90651b6 commit fb91088
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions urbs/saveload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb91088

Please sign in to comment.