From 5e1850b84f3d2bc44e0c0ced4862c7117d5fa0c6 Mon Sep 17 00:00:00 2001 From: healthonrails Date: Tue, 19 Nov 2024 18:22:45 -0500 Subject: [PATCH] Refactor frame number extraction logic --- annolid/gui/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annolid/gui/app.py b/annolid/gui/app.py index beb6afc..0435541 100644 --- a/annolid/gui/app.py +++ b/annolid/gui/app.py @@ -1368,7 +1368,7 @@ def deleteAllFuturePredictions(self): if not prediction_file_path.endswith('.json'): continue - frame_number = int(prediction_file_path.split( + frame_number = int(prediction_file.split( '_')[-1].replace('.json', '')) is_future_frames = frame_number > self.frame_number is_manually_saved = os.path.exists(