Skip to content

Commit

Permalink
Update neurots/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adrien Berchet <[email protected]>
  • Loading branch information
arnaudon and adrien-berchet committed Sep 13, 2023
1 parent 35c546a commit 937600b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurots/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def point_to_section_segment(neuron, point, rtol=1e-05, atol=1e-08):
def accept_reject(
propose, probability, rng, null=None, max_tries=100, noise_increase=0.5, **probability_kwargs
):
"""Generic accept reject algorithm."""
"""Generic accept/reject algorithm."""
n_tries = 0
while n_tries < max_tries:
proposal = propose(n_tries * noise_increase)
Expand Down

0 comments on commit 937600b

Please sign in to comment.