Skip to content

Commit 4636128

Browse files
Jammy2211Jammy2211claude
authored
refactor: replace YAML config with explicit Python defaults in search classes (#1202)
Remove per-search YAML config files (nest.yaml, mcmc.yaml, mle.yaml) and the config machinery that loaded them (config_dict_search, config_dict_run, config_type, _class_config, _config, setattr loop). All search parameters are now explicit typed __init__ arguments with Python defaults on each concrete search class (Nautilus, DynestyStatic, DynestyDynamic, Emcee, Zeus, BFGS/LBFGS, Drawer). Test mode uses apply_test_mode() for direct attribute mutation instead of dict manipulation. Co-authored-by: Jammy2211 <JNightingale2211@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f1c7679 commit 4636128

33 files changed

Lines changed: 1037 additions & 1409 deletions

File tree

autofit/config/non_linear/mcmc.yaml

Lines changed: 0 additions & 60 deletions
This file was deleted.

autofit/config/non_linear/mle.yaml

Lines changed: 0 additions & 69 deletions
This file was deleted.

autofit/config/non_linear/nest.yaml

Lines changed: 0 additions & 88 deletions
This file was deleted.

autofit/non_linear/mock/mock_search.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import Optional, Tuple
22

3-
from autoconf import conf
43
from autofit import exc
54
from autofit.graphical import FactorApproximation
65
from autofit.graphical.utils import Status
@@ -69,14 +68,6 @@ def __init__(
6968
def check_model(self, model):
7069
pass
7170

72-
@property
73-
def config_type(self):
74-
return conf.instance["non_linear"]["mock"]
75-
76-
@property
77-
def config_dict_search(self):
78-
return {}
79-
8071
def _fit_fast(self, model, analysis):
8172
class Fitness:
8273
def __init__(self, instance_from_vector, result):

0 commit comments

Comments
 (0)