You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @jvshields ,
I tested it again just by modifying the simple_tardis_workflow.py, but it does not reflect any changes in the output since, the flag - stop_if_converged - is missing in the config file being used.
Hence two changes are required, i.e. adding flag to config file & adding logger statement.
Hence, I'm sharing the diff which worked for me.
diff
diff --git a/docs/tardis_example.yml b/docs/tardis_example.yml
index 08d25b44ec..edd708439f 100644
--- a/docs/tardis_example.yml+++ b/docs/tardis_example.yml@@ -48,6 +48,7 @@ montecarlo:
threshold: 0.05
fraction: 0.8
hold_iterations: 3
+ stop_if_converged: True
t_inner:
damping_constant: 0.5
diff --git a/tardis/workflows/simple_tardis_workflow.py b/tardis/workflows/simple_tardis_workflow.py
index 7be0d77888..df36c5a407 100644
--- a/tardis/workflows/simple_tardis_workflow.py+++ b/tardis/workflows/simple_tardis_workflow.py@@ -476,6 +476,9 @@ class SimpleTARDISWorkflow(WorkflowLogging):
self.completed_iterations += 1
if self.converged and self.convergence_strategy.stop_if_converged:
+ logger.info(+ f"\n\tConvergence achieved after {self.completed_iterations + 1} iterations. Proceeding to final iteration."+ )
break
if self.converged:
Activity
Sonu0305 commentedon Apr 3, 2025
Hi @jvshields ,
I tested it again just by modifying the
simple_tardis_workflow.py, but it does not reflect any changes in the output since, the flag - stop_if_converged - is missing in the config file being used.Hence two changes are required, i.e. adding flag to config file & adding logger statement.
Hence, I'm sharing the diff which worked for me.
diff
Output
andrewfullard commentedon Nov 24, 2026
Fixed by #3833