@@ -234,27 +234,27 @@ def _get_update_interval_ratio(update_interval, sample, bound, ndim, nlive,
234234 # TODO this needs to be updated
235235 if update_interval is None :
236236 if sample == 'unif' :
237- update_interval_frac = 1.5
237+ update_interval_ratio = 1.5
238238 elif sample == 'rwalk' :
239- update_interval_frac = 0.15 * walks
239+ update_interval_ratio = 0.15 * walks
240240 elif sample == 'slice' :
241- update_interval_frac = 0.9 * ndim * slices
241+ update_interval_ratio = 0.9 * ndim * slices
242242 elif sample == 'rslice' :
243- update_interval_frac = 2.0 * slices
243+ update_interval_ratio = 2.0 * slices
244244 else :
245- update_interval_frac = 1
245+ update_interval_ratio = 1
246246 warnings .warn (
247247 "No update_interval set with unknown sampling method: "
248248 f"'{ sample } '. Defaulting to no 1 update per nlive points." )
249249 elif isinstance (update_interval , float ):
250- update_interval_frac = update_interval
250+ update_interval_ratio = update_interval
251251 elif isinstance (update_interval , int ):
252- update_interval_frac = update_interval * 1. / nlive
252+ update_interval_ratio = update_interval * 1. / nlive
253253 else :
254254 raise RuntimeError (f'Strange update_interval value { update_interval } ' )
255255 if bound == 'none' :
256- update_interval_frac = np .inf
257- return update_interval_frac
256+ update_interval_ratio = np .inf
257+ return update_interval_ratio
258258
259259
260260def _assemble_sampler_docstring (dynamic ):
@@ -678,6 +678,7 @@ def __new__(cls,
678678 queue_size = queue_size ,
679679 save_history = save_history ,
680680 history_filename = history_filename ,
681+ update_interval = update_interval ,
681682 dynamic = False )
682683
683684 update_interval = int (
@@ -784,6 +785,7 @@ def __init__(self,
784785 queue_size = queue_size ,
785786 save_history = save_history ,
786787 history_filename = history_filename ,
788+ update_interval = update_interval ,
787789 dynamic = True )
788790
789791 # Initialize our nested sampler.
0 commit comments