MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / add_video_files

Method add_video_files

deeplabcut/gui/window.py:487–495  ·  view source on GitHub ↗

Add new video files to the existing set of files. This method ensures no duplicates are added. Emits a signal to notify about the updated set of files.

(self, new_video_files)

Source from the content-addressed store, hash-verified

485 self._run_update_command(packages)
486
487 def add_video_files(self, new_video_files):
488 """
489 Add new video files to the existing set of files. This method ensures no duplicates are added.
490 Emits a signal to notify about the updated set of files.
491 """
492 new_video_files = set(new_video_files)
493 self.files.update(new_video_files) # Add new items to the existing set
494 self.video_files_.emit(self.files) # Emit the updated set of files
495 self.logger.info(f"Videos added to analyze:\n{new_video_files}\nCurrent video files:\n{self.files}")
496
497 def clear_video_files(self):
498 """

Callers 1

update_videosMethod · 0.80

Calls 2

emitMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected