How to use the sciunit.utils.log function in sciunit

To help you get started, we’ve selected a few sciunit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scidash / sciunit / sciunit / unit_test / core_tests.py View on Github external
def test_log(self):
        from sciunit.utils import log
        
        log("Lorem Ipsum")
github scidash / sciunit / sciunit / unit_test / utils_tests.py View on Github external
def test_log(self):
        from sciunit.utils import log

        log("Lorem Ipsum")
github scidash / sciunit / sciunit / suites.py View on Github external
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
github scidash / sciunit / sciunit / suites.py View on Github external
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
github scidash / sciunit / sciunit / scores / base.py View on Github external
def describe(self, quiet=False):
        d = self._describe()
        if quiet:
            return d
        else:
            log(d)
github scidash / sciunit / sciunit / scores / base.py View on Github external
def summarize(self):
        if self.score is not None:
            log("%s" % self.summary)