Skip to content

Commit

Permalink
Merge pull request #246 from maledo/fix_naturalnamewarning
Browse files Browse the repository at this point in the history
Suppress NaturalNameWarning while saving the output (fix #245)
  • Loading branch information
lodersky authored Jun 5, 2019
2 parents 90651b6 + fb91088 commit ee455a5
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 ee455a5

Please sign in to comment.