@@ -497,11 +497,13 @@ class represented by model M and gives a score for their fitness.
497497 analysis = analysis .modify_before_fit (paths = self .paths , model = model )
498498 model .unfreeze ()
499499
500- self .pre_fit_output (
501- analysis = analysis ,
502- model = model ,
503- info = info ,
504- )
500+ mode = test_mode_level ()
501+ if mode < 2 :
502+ self .pre_fit_output (
503+ analysis = analysis ,
504+ model = model ,
505+ info = info ,
506+ )
505507
506508 if not self .paths .is_complete :
507509 result = self .start_resume_fit (
@@ -514,13 +516,14 @@ class represented by model M and gives a score for their fitness.
514516 model = model ,
515517 )
516518
517- analysis = analysis .modify_after_fit (
518- paths = self .paths , model = model , result = result
519- )
519+ if mode < 2 :
520+ analysis = analysis .modify_after_fit (
521+ paths = self .paths , model = model , result = result
522+ )
520523
521- self .post_fit_output (
522- search_internal = result .search_internal ,
523- )
524+ self .post_fit_output (
525+ search_internal = result .search_internal ,
526+ )
524527
525528 gc .collect ()
526529
@@ -856,8 +859,6 @@ def _fit_bypass_test_mode(
856859 )
857860
858861 samples_summary = samples .summary ()
859- self .paths .save_samples_summary (samples_summary = samples_summary )
860- self .paths .save_samples (samples = samples )
861862
862863 result = analysis .make_result (
863864 samples_summary = samples_summary ,
@@ -866,13 +867,8 @@ def _fit_bypass_test_mode(
866867 search_internal = None ,
867868 )
868869
869- analysis .save_results (paths = self .paths , result = result )
870- analysis .save_results_combined (paths = self .paths , result = result )
871-
872870 model .unfreeze ()
873871
874- self .paths .completed ()
875-
876872 return result
877873
878874 @staticmethod
0 commit comments