Skip to content

Commit

Permalink
Added Pandas warning suppression for model and test attribute setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Dec 6, 2018
1 parent 86e48ba commit c4f0f2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sciunit/scores/collections_m2m.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ def __init__(self, test, models, scores):
items = [test]+models
super(ScoreMatrixM2M, self).__init__(data=scores, index=items,
columns=items)
self.test = test
with warnings.catch_warnings():
warnings.filterwarnings("ignore",
message=(".*Pandas doesn't allow columns "
"to be created via a new "))
self.tests = tests
self.models = models

def __getitem__(self, item):
Expand Down

0 comments on commit c4f0f2e

Please sign in to comment.