Source code for pyadjoint
#!/usr/bin/env python3
"""
:copyright:
adjTomo Dev Team (adjtomo@gmail.com), 2022
Lion Krischer (krischer@geophysik.uni-muenchen.de), 2015
:license:
BSD 3-Clause ("BSD New" or "BSD Simplified")
"""
import logging
[docs]class PyadjointError(Exception):
"""
Base class for all Pyadjoint exceptions. Will probably be used for all
exceptions to not overcomplicate things as the whole package is pretty
small.
"""
pass
# setup the logger
logger.setLevel(logging.WARNING)
# Prevent propagating to higher loggers.
# Console log handler.
# Add formatter
ch.setFormatter(formatter)
ch.setLevel(logging.DEBUG)
logger.addHandler(ch)
# Main objects and functions available at the top level.
from .adjoint_source import AdjointSource # NOQA
from .main import (calculate_adjoint_source, get_example_data,
plot_adjoint_source) # NOQA
from .config import get_config, get_function, ADJSRC_TYPES # NOQA