From b7aa40bc045e5a2fa0d3914536ebe241b6c9e1e4 Mon Sep 17 00:00:00 2001 From: huisman <23581164+huisman@users.noreply.github.com> Date: Sat, 8 Nov 2025 14:52:00 +0100 Subject: [PATCH] Remove unnecessary int conversion math.ceil returns an integer so the int call is unnecessary --- master_openworm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master_openworm.py b/master_openworm.py index 2e50597..a8344c0 100644 --- a/master_openworm.py +++ b/master_openworm.py @@ -309,7 +309,7 @@ def execute_with_realtime_output(command, directory, env=None): black_dur = float(out[black_dur_pos + len("black_duration:") :]) if black_start == 0.0 and black_dur: - black_dur = int(math.ceil(black_dur)) + black_dur = math.ceil(black_dur) command = "ffmpeg -ss 00:00:0%s -i %s/%s -c copy -avoid_negative_ts 1 %s/cut_%s" % ( black_dur, new_sim_out,