Package diskchef

DiskCheF package

For support, contact author via smirnov@mpia.de, or create an issue on a GitLab page

Expand source code
"""DiskCheF package

For support, contact author via smirnov@mpia.de, or create an issue on a GitLab page
"""
__author__ = "Grigorii Smirnov-Pinchukov, PRODIGE team"

import logging

from diskchef.engine.ctable import CTable
from diskchef.lamda.line import Line
from diskchef import chemistry, physics, lamda, engine, dust_opacity, maps, model, fitting

from diskchef.physics import WilliamsBest100au, WilliamsBest2014
from diskchef.chemistry import NonzeroChemistryWB2014, SciKitChemistry
from diskchef.lamda.line import Line
from diskchef.engine.ctable import CTable
from diskchef.maps import RadMCRTLines, RadMCTherm
from diskchef.maps.radmc_lines import RadMCRTSingleCall  # deprecated
from diskchef.uv import UVFits
from diskchef.fitting import UltraNestFitter, Parameter


def logging_basic_config(
        format='%(asctime)s (%(relativeCreated)10d ms) PID %(process)10d  %(name)-60s %(levelname)-8s %(message)s',
        datefmt='%m.%d.%Y %H:%M:%S',
        level=logging.WARNING,
        **kwargs
):
    """Sets default logging configuration"""
    logging.basicConfig(format=format, datefmt=datefmt, level=level, **kwargs)

Sub-modules

diskchef.chemistry

Package with classes which calculate the chemical structure based on the physical structure …

diskchef.dust_opacity

Package with various databases of dust opacity and functions to process them …

diskchef.engine

Package with basic objects used in the whole project …

diskchef.fitting
diskchef.lamda

Package with LAMDA database files and functions to process them …

diskchef.maps

Package with interface to run RadMC …

diskchef.model
diskchef.physics

Package with classes which calculate the physics structure …

diskchef.tests
diskchef.uv

Package with interface to galario …

Functions

def logging_basic_config(format='%(asctime)s (%(relativeCreated)10d ms) PID %(process)10d %(name)-60s %(levelname)-8s %(message)s', datefmt='%m.%d.%Y %H:%M:%S', level=30, **kwargs)

Sets default logging configuration

Expand source code
def logging_basic_config(
        format='%(asctime)s (%(relativeCreated)10d ms) PID %(process)10d  %(name)-60s %(levelname)-8s %(message)s',
        datefmt='%m.%d.%Y %H:%M:%S',
        level=logging.WARNING,
        **kwargs
):
    """Sets default logging configuration"""
    logging.basicConfig(format=format, datefmt=datefmt, level=level, **kwargs)