We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a43d66 + 0bcffe4 commit 4653f67Copy full SHA for 4653f67
1 file changed
src/foraging_gui/Foraging.py
@@ -1087,6 +1087,12 @@ def _check_drop_frames(self, save_tag=1):
1087
self.to_check_drop_frames = 0
1088
return
1089
1090
+ if not os.path.isdir(video_folder):
1091
+ self.trigger_length=0
1092
+ self.to_check_drop_frames=0
1093
+ logging.warning('Hit unexpected edge case, no video folder, but video trigger file exists')
1094
+ return
1095
+
1096
# Inspect contents of video_folder to determine structure
1097
entries = os.listdir(video_folder)
1098
csv_files = [f for f in entries if f.endswith(".csv")]
0 commit comments