Skip to content

Commit

Permalink
strict=True doesn't exist in Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiefl committed Aug 24, 2024
1 parent f39c9fd commit 5ee0a32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pooltool/evolution/event_based/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def get_next_ball_ball_collision(

if len(collision_coeffs):
roots = solve_quartics(ps=np.array(collision_coeffs), solver=solver)
for root, ball_pair in zip(roots, ball_pairs, strict=True):
for root, ball_pair in zip(roots, ball_pairs):
cache[ball_pair] = shot.t + root

# The cache is now populated and up-to-date
Expand Down Expand Up @@ -377,7 +377,7 @@ def get_next_ball_circular_cushion_event(

if len(collision_coeffs):
roots = solve_quartics(ps=np.array(collision_coeffs), solver=solver)
for root, ball_cushion_pair in zip(roots, ball_cushion_pairs, strict=True):
for root, ball_cushion_pair in zip(roots, ball_cushion_pairs):
cache[ball_cushion_pair] = shot.t + root

# The cache is now populated and up-to-date
Expand Down Expand Up @@ -487,7 +487,7 @@ def get_next_ball_pocket_collision(

if len(collision_coeffs):
roots = solve_quartics(ps=np.array(collision_coeffs), solver=solver)
for root, ball_pocket_pair in zip(roots, ball_pocket_pairs, strict=True):
for root, ball_pocket_pair in zip(roots, ball_pocket_pairs):
cache[ball_pocket_pair] = shot.t + root

# The cache is now populated and up-to-date
Expand Down

0 comments on commit 5ee0a32

Please sign in to comment.