Skip to content

Commit

Permalink
move again_end default computation inside conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
HighDiceRoller committed Jun 10, 2024
1 parent fee6dbb commit 7efc9a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/icepool/population/again.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,8 @@ def evaluate_agains_using_depth(outcomes: Sequence, times: Sequence[int],
if again_depth < 0:
raise ValueError('again_depth cannot be negative.')

not_again_die = compute_not_again_die(outcomes, times)

if again_end is None:
again_end = not_again_die.zero_outcome()
again_end = compute_not_again_die(outcomes, times).zero_outcome()

def replace_again(outcome):
if isinstance(outcome, AgainExpression):
Expand Down

0 comments on commit 7efc9a3

Please sign in to comment.