Skip to content

Commit b7aa40b

Browse files
authored
Remove unnecessary int conversion
math.ceil returns an integer so the int call is unnecessary
1 parent 7ac9050 commit b7aa40b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

master_openworm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def execute_with_realtime_output(command, directory, env=None):
309309
black_dur = float(out[black_dur_pos + len("black_duration:") :])
310310

311311
if black_start == 0.0 and black_dur:
312-
black_dur = int(math.ceil(black_dur))
312+
black_dur = math.ceil(black_dur)
313313
command = "ffmpeg -ss 00:00:0%s -i %s/%s -c copy -avoid_negative_ts 1 %s/cut_%s" % (
314314
black_dur,
315315
new_sim_out,

0 commit comments

Comments
 (0)