Skip to content

Logger

print_ascii_banner()

Prints ASCII banner only once when the script starts.

Source code in src/pheval/utils/logger.py
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
def print_ascii_banner():
    """Prints ASCII banner only once when the script starts."""
    if not getattr(logging, "_ascii_printed", False):
        logging._ascii_printed = True
        pheval_banner = """
        Welcome to:
        ██████╗ ██╗  ██╗███████╗██╗   ██╗ █████╗ ██╗
        ██╔══██╗██║  ██║██╔════╝██║   ██║██╔══██╗██║
        ██████╔╝███████║█████╗  ██║   ██║███████║██║
        ██╔═══╝ ██╔══██║██╔══╝  ╚██╗ ██╔╝██╔══██║██║
        ██║     ██║  ██║███████╗ ╚████╔╝ ██║  ██║███████╗
        ╚═╝     ╚═╝  ╚═╝╚══════╝  ╚═══╝  ╚═╝  ╚═╝╚══════╝
        A framework for the empirical evaluation of phenotype-driven prioritisation tools.
        """
        print(pheval_banner)