Source code for threeML.config.plugin_structure

from dataclasses import dataclass, field
from enum import Enum, Flag
from typing import Any, Dict, List, Optional

import matplotlib.pyplot as plt
from omegaconf import II, MISSING, SI, OmegaConf

from .plotting_structure import (
    BinnedSpectrumPlot,
    DataHistPlot,
    FermiSpectrumPlot,
    MPLCmap,
)


[docs] @dataclass class OGIP: fit_plot: BinnedSpectrumPlot = BinnedSpectrumPlot() data_plot: DataHistPlot = DataHistPlot() response_cmap: MPLCmap = MPLCmap.viridis response_zero_color: str = "k"
[docs] @dataclass class Fermipy: fit_plot: FermiSpectrumPlot = FermiSpectrumPlot()
# data_plot: DataHistPlot = DataHistPlot()
[docs] @dataclass class Photo: fit_plot: BinnedSpectrumPlot = BinnedSpectrumPlot()
[docs] @dataclass class Plugins: ogip: OGIP = OGIP() photo: Photo = Photo() fermipy: Fermipy =Fermipy()
[docs] @dataclass class TimeSeriesFit: fit_poly: bool = True unbinned: bool = False bayes: bool = False
[docs] @dataclass class TimeSeries: light_curve_color: str = "#05716c" selection_color: str = "#1fbfb8" background_color: str = "#C0392B" background_selection_color: str = "#E74C3C" fit: TimeSeriesFit = TimeSeriesFit()