Skip to content

Commit

Permalink
update config for 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
grburgess committed May 20, 2023
1 parent 40314f3 commit 8f4610d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion astromodels/core/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import contextlib
import copy
import warnings
from typing import Any, Dict, List, Optional, Tuple, Union
from typing import Any, Dict, List, Optional, Tuple

import astropy.units as u
import numpy as np
Expand Down
17 changes: 6 additions & 11 deletions astromodels/utils/config_structure.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import logging
from dataclasses import dataclass
from dataclasses import dataclass, field
from enum import IntEnum, Enum


# from .catalog_structure import Catalogs, PublicDataServer
# from .fitting_structure import BayesianDefault, MLEDefault
# from .plotting_structure import GenericPlotting, ModelPlotting
# from .plugin_structure import Plugins, TimeSeries
# from .point_source_structure import PointSourceDefaults

# logging
class LoggingLevel(IntEnum):
DEBUG = logging.DEBUG
Expand All @@ -20,7 +14,6 @@ class LoggingLevel(IntEnum):

@dataclass
class Logging:

path: str = "~/.astromodels/log"
developer: bool = "off"
usr: bool = "on"
Expand Down Expand Up @@ -64,6 +57,8 @@ class Modeling:

@dataclass
class Config:
logging: Logging = Logging()
absorption_models: AbsorptionModels = AbsorptionModels()
modeling: Modeling = Modeling()
logging: Logging = field(default_factory=Logging)
absorption_models: AbsorptionModels = field(
default_factory=AbsorptionModels
)
modeling: Modeling = field(default_factory=Modeling)

0 comments on commit 8f4610d

Please sign in to comment.