Skip to content

Commit

Permalink
Restored feature_judge for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Apr 30, 2021
1 parent 41915ff commit a5e0443
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sciunit/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,18 @@ def _judge(self, model: Model, skip_incapable: bool = True, cached_prediction=Fa
self._bind_score(score, model, self.observation, prediction)

return score


def feature_judge(
self,
model: Model,
skip_incapable: bool = False,
stop_on_error: bool = True,
deep_error: bool = False,
) -> Score:
"""For backwards compatibility"""
return self.judge(model, skip_incapable=skip_incapable, stop_on_error=stop_on_error,
deep_error=deep_error, cached_prediction=True)


def judge(
Expand Down

0 comments on commit a5e0443

Please sign in to comment.