@@ -354,13 +354,13 @@ def normalize_results(self):
354354 # f"{self.objective_function:.5e}"
355355 # )
356356 self ._objective_history .append (self .objective_function )
357- self .objective_log = [
357+ self .objective_log . append (
358358 {
359359 "step" : "c_norm" ,
360360 "objective" : self .objective_function ,
361361 "timestamp" : time .time (),
362362 }
363- ]
363+ )
364364 self .objective_difference = (
365365 self ._objective_history [- 2 ] - self ._objective_history [- 1 ]
366366 )
@@ -386,13 +386,13 @@ def outer_loop(self):
386386 self .update_components ()
387387 self .residuals = self .get_residual_matrix ()
388388 self .objective_function = self .get_objective_function ()
389- self .objective_log = [
389+ self .objective_log . append (
390390 {
391391 "step" : "c" ,
392392 "objective" : self .objective_function ,
393393 "timestamp" : time .time (),
394394 }
395- ]
395+ )
396396 # print(
397397 # f"Objective function after update_components: "
398398 # f"{self.objective_function:.5e}"
@@ -424,13 +424,13 @@ def outer_loop(self):
424424 # f"{self.objective_function:.5e}"
425425 # )
426426 self ._objective_history .append (self .objective_function )
427- self .objective_log = [
427+ self .objective_log . append (
428428 {
429429 "step" : "w" ,
430430 "objective" : self .objective_function ,
431431 "timestamp" : time .time (),
432432 }
433- ]
433+ )
434434
435435 self .objective_difference = (
436436 self ._objective_history [- 2 ] - self ._objective_history [- 1 ]
@@ -469,13 +469,13 @@ def outer_loop(self):
469469 # f"{self.objective_function:.5e}"
470470 # )
471471 self ._objective_history .append (self .objective_function )
472- self .objective_log = [
472+ self .objective_log . append (
473473 {
474474 "step" : "s" ,
475475 "objective" : self .objective_function ,
476476 "timestamp" : time .time (),
477477 }
478- ]
478+ )
479479 self .objective_difference = (
480480 self ._objective_history [- 2 ] - self ._objective_history [- 1 ]
481481 )
0 commit comments