@@ -572,17 +572,16 @@ def _configure_batch_sampler(main_sampler,
572572 # Return live points in generator format.
573573 # these won't be saved but just used for printing
574574 first_points .append (
575- IteratorResultShort (
576- worst = - i - 1 ,
577- ustar = live_u [i ],
578- vstar = live_v [i ],
579- loglstar = live_logl [i ],
580- nc = live_nc [i ],
581- worst_it = live_it [i ] + main_sampler .it ,
582- boundidx = live_bound [i ],
583- bounditer = live_bound [i ],
584- eff = main_sampler .eff ,
585- proposal_stats = live_proposal_stats [i ]))
575+ IteratorResultShort (worst = - i - 1 ,
576+ ustar = live_u [i ],
577+ vstar = live_v [i ],
578+ loglstar = live_logl [i ],
579+ nc = live_nc [i ],
580+ worst_it = live_it [i ] + main_sampler .it ,
581+ boundidx = live_bound [i ],
582+ bounditer = live_bound [i ],
583+ eff = main_sampler .eff ,
584+ proposal_stats = live_proposal_stats [i ]))
586585 niter += nlive_new
587586 # Overwrite the previous set of live points in our internal sampler
588587 # with the new batch of points we just generated.
@@ -883,7 +882,6 @@ def results(self):
883882 results .append ((k , d [k ]))
884883 results .append (('logzerr' , np .sqrt (d ['logzvar' ])))
885884 results .append (('information' , d ['h' ]))
886- print (f"DEBUG: d['proposal_stats'] in DynamicSampler.results: { d ['proposal_stats' ]} " )
887885
888886 # Add any saved bounds (and ancillary quantities) to the results.
889887 if self .sampler .save_bounds :
@@ -2072,23 +2070,24 @@ def add_batch(self,
20722070 niter += 1
20732071
20742072 # Reorganize results.
2075- results = IteratorResult (worst = cur_results .worst ,
2076- ustar = cur_results .ustar ,
2077- vstar = cur_results .vstar ,
2078- loglstar = cur_results .loglstar ,
2079- blob = None ,
2080- logvol = np .nan ,
2081- logwt = np .nan ,
2082- logz = logz ,
2083- logzvar = logzvar ,
2084- h = np .nan ,
2085- nc = cur_results .nc ,
2086- worst_it = cur_results .worst_it ,
2087- boundidx = cur_results .boundidx ,
2088- bounditer = cur_results .bounditer ,
2089- eff = cur_results .eff ,
2090- delta_logz = np .nan ,
2091- proposal_stats = cur_results .proposal_stats )
2073+ results = IteratorResult (
2074+ worst = cur_results .worst ,
2075+ ustar = cur_results .ustar ,
2076+ vstar = cur_results .vstar ,
2077+ loglstar = cur_results .loglstar ,
2078+ blob = None ,
2079+ logvol = np .nan ,
2080+ logwt = np .nan ,
2081+ logz = logz ,
2082+ logzvar = logzvar ,
2083+ h = np .nan ,
2084+ nc = cur_results .nc ,
2085+ worst_it = cur_results .worst_it ,
2086+ boundidx = cur_results .boundidx ,
2087+ bounditer = cur_results .bounditer ,
2088+ eff = cur_results .eff ,
2089+ delta_logz = np .nan ,
2090+ proposal_stats = cur_results .proposal_stats )
20922091
20932092 # Print progress.
20942093 if print_progress :
0 commit comments