Skip to content

Commit

Permalink
get rid of Config class
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Oct 30, 2024
1 parent 1354fc2 commit df73e38
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
20 changes: 8 additions & 12 deletions acq_stat_reports/config.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
class Config:
# "Top-level data directory",
output_dir = "."
# "Top-level data directory",
output_dir = "."

# "Default figure width in inches",
figure_width = 5
# "Default figure width in inches",
figure_width = 5

# "Default figure height in inches",
figure_height = 2.5
# "Default figure height in inches",
figure_height = 2.5

# "Matplotlib style to use",
mpl_style = "bmh"


conf = Config()
# "Matplotlib style to use",
mpl_style = "bmh"
2 changes: 1 addition & 1 deletion acq_stat_reports/scripts/acq_stat_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from cxotime import CxoTime
from ska_helpers import logging

from acq_stat_reports import config as conf
from acq_stat_reports import get_acq_info, get_data, make_acq_plots, make_html
from acq_stat_reports.config import conf

SKA = Path(os.environ["SKA"])

Expand Down
2 changes: 1 addition & 1 deletion acq_stat_reports/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from astropy.table import Table
from chandra_aca.star_probs import binomial_confidence_interval

from acq_stat_reports.config import conf
from acq_stat_reports import config as conf


@dataclass
Expand Down

0 comments on commit df73e38

Please sign in to comment.