-
-
Notifications
You must be signed in to change notification settings - Fork 125
/
__init__.py
34 lines (26 loc) · 773 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Graphein
# Author: Arian Jamasb <arian@jamasb.io>
# License: BSD 3 clause
# Code Repository: https://github.com/a-r-j/graphein
from loguru import logger
from rich.logging import RichHandler
from graphein.utils.utils import *
# from .protein import *
# from .rna import *
from .testing import *
__author__ = "Arian Jamasb <arian@jamasb.io>"
__version__ = "1.7.1"
logger.configure(
handlers=[
{"sink": RichHandler(rich_tracebacks=True), "format": "{message}"}
]
)
def verbose(enabled: bool = False):
"""Enable/Disable logging.
:param enabled: Whether or not to enable logging, defaults to ``False``.
:type enabled: bool, optional
"""
if not enabled:
logger.disable("graphein")
else:
logger.enable("graphein")