Skip to content

Commit

Permalink
avoid duplicate argument in SpeedVariableRegionSliceSampler
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Apr 5, 2022
1 parent a51eeef commit 557f35c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ultranest/stepsampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,13 +1068,13 @@ def SpeedVariableRegionSliceSampler(step_matrix, *args, **kwargs):
Updates only some dimensions at a time, completely user-definable.
"""

generate_direction = kwargs.pop('generate_direction', generate_region_random_direction)
return SliceSampler(
*args, **kwargs,
nsteps=kwargs.pop('nsteps', len(step_matrix)),
generate_direction=SpeedVariableGenerator(
step_matrix=step_matrix,
generate_direction=kwargs.pop('generate_direction', generate_region_random_direction)
generate_direction=generate_direction
)
)

Expand Down

0 comments on commit 557f35c

Please sign in to comment.