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)
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)
def test_log(self): from sciunit.utils import log log("Lorem Ipsum")
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")
def summarize(self): """[summary] """ if self.score is not None: log("%s" % self.summary)