Beispiel #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)
Beispiel #2
0
 def describe(self, quiet=False):
     d = self._describe()
     if quiet:
         return d
     else:
         log(d)
Beispiel #3
0
 def summarize(self):
     if self.score is not None:
         log("%s" % self.summary)
Beispiel #4
0
    def test_log(self):
        from sciunit.utils import log

        log("Lorem Ipsum")
Beispiel #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")
Beispiel #6
0
 def summarize(self):
     """[summary]
     """
     if self.score is not None:
         log("%s" % self.summary)
Beispiel #7
0
 def describe(self, quiet=False):
     d = self._describe()
     if quiet:
         return d
     else:
         log(d)
Beispiel #8
0
 def summarize(self):
     if self.score is not None:
         log("%s" % self.summary)
Beispiel #9
0
    def test_log(self):
        from sciunit.utils import log

        log("Lorem Ipsum")