File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -578,18 +578,17 @@ def random_noise(a):
578578
579579 if count % varipeps_config .optimizer_autosave_step_count == 0 :
580580 auxiliary_data = {
581- "max_trunc_error_list" : tuple (
582- max_trunc_error_list [k ]
583- for k in sorted (max_trunc_error_list .keys ())
584- ),
585- "step_energies" : tuple (
586- step_energies [k ] for k in sorted (step_energies .keys ())
587- ),
588- "step_chi" : tuple (step_chi [k ] for k in sorted (step_chi .keys ())),
589- "step_conv" : tuple (step_conv [k ] for k in sorted (step_conv .keys ())),
590581 "best_run" : best_run if best_run is not None else 0 ,
591582 }
592583
584+ for k in sorted (max_trunc_error_list .keys ()):
585+ auxiliary_data [f"max_trunc_error_list_{ k :d} " ] = (
586+ max_trunc_error_list [k ]
587+ )
588+ auxiliary_data [f"step_energies_{ k :d} " ] = step_energies [k ]
589+ auxiliary_data [f"step_chi_{ k :d} " ] = step_chi [k ]
590+ auxiliary_data [f"step_conv_{ k :d} " ] = step_conv [k ]
591+
593592 if spiral_indices is not None :
594593 for spiral_i in spiral_indices :
595594 auxiliary_data [f"spiral_vector_{ spiral_i :d} " ] = working_tensors [
You can’t perform that action at this time.
0 commit comments