Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelyndunnell committed Nov 15, 2024
1 parent ad583ec commit d3c07ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_stepsize.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,17 @@ def test_overshoot_milestone(nb_its=1, target=4):
"""

my_stepsize = F.Stepsize(initial_value=0.1)
my_stepsize.growth_factor = 5.0
my_stepsize.growth_factor = 1
my_stepsize.target_nb_iterations = target

my_stepsize.milestones = [1.3]

current_value = 0.5
current_value = 100000
new_value = my_stepsize.modify_value(
value=current_value, nb_iterations=nb_its, t=0.9
value=current_value, nb_iterations=nb_its, t=1
)

expected_value = 1.3 - current_value
expected_value = 1.3 - 1

assert new_value == expected_value

Expand Down

0 comments on commit d3c07ea

Please sign in to comment.