diff --git a/.gitignore b/.gitignore index 5967c7a..1ca43e0 100644 --- a/.gitignore +++ b/.gitignore @@ -130,3 +130,4 @@ dmypy.json # Example dataset 181129/ +/.project diff --git a/PythonAPI/bam.py b/PythonAPI/bam.py index 61e3cad..39cbae4 100644 --- a/PythonAPI/bam.py +++ b/PythonAPI/bam.py @@ -77,6 +77,13 @@ def unroll_videos(self, force: bool = False, video: Optional[int] = None) -> Non :param video: if None all videos are unrolled. If it has a concrete value, only that video is unrolled """ + # LEGACY move videos from paper-location to code-location + for c in range(self.num_cameras): + paper_location = os.path.join(self.videos_dir, "camera"+str(c).zfill(2),"recording.mp4") + if os.path.isfile(paper_location): + code_location = os.path.join(self.dataset_dir, self.dataset_name + '_' + str(c).zfill(2) + '.mp4') + os.rename(paper_location, code_location) + # Remove folders if force: if video is None: # remove videos folder