Skip to content

Commit

Permalink
fix bug in get_frame_indices
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Nov 27, 2024
1 parent d05009a commit cf2b0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alphadia/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def get_frame_indices(
optimal_cycle_limits[0] = precursor_cycle_max_index - optimal_len

if optimal_cycle_limits[0] < 0:
optimal_cycle_limits[0] = 0
optimal_cycle_limits[0] = 0 if precursor_cycle_max_index % 2 == 0 else 1

# Convert back to frame indices
frame_limits = optimal_cycle_limits * cycle_len + zeroth_frame
Expand Down

0 comments on commit cf2b0e2

Please sign in to comment.