File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77
88[project ]
99name = " spotpython"
10- version = " 0.14.59 "
10+ version = " 0.14.60 "
1111authors = [
1212 { name =" T. Bartz-Beielstein" , email =" tbb@bartzundbartz.de" }
1313]
Original file line number Diff line number Diff line change @@ -2117,4 +2117,18 @@ def save_experiment(self, filename=None) -> None:
21172117 filename = get_experiment_filename (PREFIX )
21182118 if filename is not None :
21192119 with open (filename , "wb" ) as handle :
2120- pickle .dump (experiment , handle , protocol = pickle .HIGHEST_PROTOCOL )
2120+ try :
2121+ pickle .dump (experiment , handle , protocol = pickle .HIGHEST_PROTOCOL )
2122+ except Exception as e :
2123+ logger .error (f"Error: { e } " )
2124+ pprint .pprint (fun_control )
2125+ print ("design_control:" )
2126+ pprint .pprint (design_control )
2127+ print ("optimizer_control:" )
2128+ pprint .pprint (optimizer_control )
2129+ print ("surrogate_control:" )
2130+ pprint .pprint (surrogate_control )
2131+ print ("spot_tuner:" )
2132+ pprint .pprint (spot_tuner )
2133+
2134+ raise e
You can’t perform that action at this time.
0 commit comments