Пример #1
0
    def describe(self, quiet: bool = False) -> Union[str, None]:
        """Get the description of this score instance.

        Args:
            quiet (bool, optional): If `True`, then log the description, return the description otherwise. 
                                    Defaults to False.

        Returns:
            Union[str, None]: If not `quiet`, then return the description of this score instance.
                            Otherwise, `None`.
        """
        d = self._describe()
        if quiet:
            return d
        else:
            log(d)
Пример #2
0
 def describe(self, quiet=False):
     d = self._describe()
     if quiet:
         return d
     else:
         log(d)
Пример #3
0
 def summarize(self):
     if self.score is not None:
         log("%s" % self.summary)
Пример #4
0
    def test_log(self):
        from sciunit.utils import log

        log("Lorem Ipsum")
Пример #5
0
    def test_log(self):
        from sciunit.utils import html_log, log, strip_html

        strip_html("test log1")
        html_log("test log1", "test log2")
        log("Lorem Ipsum")
Пример #6
0
 def summarize(self):
     """[summary]
     """
     if self.score is not None:
         log("%s" % self.summary)
Пример #7
0
 def describe(self, quiet=False):
     d = self._describe()
     if quiet:
         return d
     else:
         log(d)
Пример #8
0
 def summarize(self):
     if self.score is not None:
         log("%s" % self.summary)
Пример #9
0
    def test_log(self):
        from sciunit.utils import log

        log("Lorem Ipsum")