Skip to content

Commit ace7f6c

Browse files
authored
Merge pull request #1188 from rhayes777/feature/reenable-model-info-test-mode
Re-enable model.info output in test mode 2+
2 parents 9f262cc + 11e18d4 commit ace7f6c

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

autofit/mapper/prior_model/abstract.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,11 +1778,6 @@ def info(self) -> str:
17781778
parameter of the overall model.
17791779
This information is extracted from each priors *model_info* property.
17801780
"""
1781-
from autofit.non_linear.test_mode import test_mode_level
1782-
1783-
if test_mode_level() >= 2:
1784-
return f"Total Free Parameters = {self.prior_count}\n\n[test mode — info skipped]"
1785-
17861781
formatter = TextFormatter(line_length=info_whitespace())
17871782

17881783
for t in find_groups(

autofit/non_linear/search/abstract_search.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ class represented by model M and gives a score for their fitness.
504504
model=model,
505505
info=info,
506506
)
507+
else:
508+
if hasattr(self.paths, '_save_model_info'):
509+
self.paths._save_model_info(model=model)
507510

508511
if not self.paths.is_complete:
509512
result = self.start_resume_fit(

0 commit comments

Comments
 (0)