Skip to content

Commit 1767f72

Browse files
committed
modified util
1 parent 713998d commit 1767f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basicrta/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def get_start_stop_frames(simtime, timelen, ts):
509509
dec = get_dec(ts)
510510
framec = (np.round(timelen, dec) / ts).astype(int)
511511
frame = (np.round(simtime, dec) / ts).astype(int)
512-
return frame, frame + framec
512+
return frame, frame + framec - 1
513513

514514

515515
def get_write_frames(u, time, trajtime, lipind, comp):

0 commit comments

Comments
 (0)