Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_log(self):
from sciunit.utils import log
log("Lorem Ipsum")
def test_log(self):
from sciunit.utils import log
log("Lorem Ipsum")
def judge_one(self, model, test, sm,
skip_incapable=True, stop_on_error=True, deep_error=False):
"""Judge model and put score in the ScoreMatrix."""
if self.is_skipped(model):
score = NoneScore(None)
else:
log('Executing test <i>%s</i> on model <i>%s</i>' % (test, model),
end=u"... ")
score = test.judge(model, skip_incapable=skip_incapable,
stop_on_error=stop_on_error,
deep_error=deep_error)
log('Score is <a style="color: rgb(%d,%d,%d)">' % score.color()
+ '%s</a>' % score)
sm.loc[model, test] = score
return score
def judge_one(self, model, test, sm,
skip_incapable=True, stop_on_error=True, deep_error=False):
"""Judge model and put score in the ScoreMatrix."""
if self.is_skipped(model):
score = NoneScore(None)
else:
log('Executing test <i>%s</i> on model <i>%s</i>' % (test, model),
end=u"... ")
score = test.judge(model, skip_incapable=skip_incapable,
stop_on_error=stop_on_error,
deep_error=deep_error)
log('Score is <a style="color: rgb(%d,%d,%d)">' % score.color()
+ '%s</a>' % score)
sm.loc[model, test] = score
return score
def describe(self, quiet=False):
d = self._describe()
if quiet:
return d
else:
log(d)
def summarize(self):
if self.score is not None:
log("%s" % self.summary)