Source code for barotropy
# Highlight exception messages
# https://stackoverflow.com/questions/25109105/how-to-colorize-the-output-of-python-errors-in-the-gnome-terminal/52797444#52797444
try:
import IPython.core.ultratb
except ImportError:
# No IPython. Use default exception printing.
pass
else:
import sys
sys.excepthook = IPython.core.ultratb.FormattedTB(call_pdb=False)
from jaxprop import *
# Import subpackages
from .fluent_automation import *
# Import submodules
from .barotropic_model import *
from .math import *
from .graphics import *
from .utilities import *
# Package info
__version__ = "0.4.5"
PACKAGE_NAME = "barotropy"
URL_GITHUB = "https://github.com/turbo-sim/barotropy"
URL_DOCS = "https://turbo-sim.github.io/barotropy/"
URL_DTU = "https://thermalpower.dtu.dk/"
BREAKLINE = 80 * "-"
[docs]
def print_banner():
"""Prints a banner."""
banner = r"""
____ __
/ __ )____ __________ / /__________ ____ __ __
/ __ / __ `/ ___/ __ \/ __/ ___/ __ \/ __ \/ / / /
/ /_/ / /_/ / / / /_/ / /_/ / / /_/ / /_/ / /_/ /
/_____/\__,_/_/ \____/\__/_/ \____/ .___/\__, /
/_/ /____/
"""
print(BREAKLINE)
print(banner)
print(BREAKLINE)
# https://manytools.org/hacker-tools/ascii-banner/
# Style: Sland
[docs]
def print_package_info():
"""Prints package information with predefined values."""
info = f""" Version: {__version__}
Repository: {URL_GITHUB}
Documentation: {URL_DOCS}"""
print_banner()
print(info)
print(BREAKLINE)