From be2b8d5c60087d53e84f84bf9392f0ece2812c91 Mon Sep 17 00:00:00 2001 From: "robin@ynput.io" Date: Wed, 18 Sep 2024 16:46:49 -0400 Subject: [PATCH] Fix lint. --- client/ayon_core/pipeline/editorial.py | 8 +++----- .../plugins/publish/extract_otio_trimming_video.py | 3 --- .../pipeline/editorial/test_media_range_with_retimes.py | 1 - 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/client/ayon_core/pipeline/editorial.py b/client/ayon_core/pipeline/editorial.py index bc02ae9b00..ca62c13e7d 100644 --- a/client/ayon_core/pipeline/editorial.py +++ b/client/ayon_core/pipeline/editorial.py @@ -176,8 +176,6 @@ def _sequence_resize(source, length): def get_media_range_with_retimes(otio_clip, handle_start, handle_end): source_range = otio_clip.source_range available_range = otio_clip.available_range() - - source_range_rate = source_range.start_time.rate available_range_rate = available_range.start_time.rate # Conform source range bounds to available range rate @@ -187,9 +185,9 @@ def get_media_range_with_retimes(otio_clip, handle_start, handle_end): # 86400 86500 # # - # 90010 90060 - # src |-----|______duration 2s___|----| 25fps - # 90000 + # 90010 90060 + # src |-----|______duration 2s___|----| 25fps + # 90000 # # # 86409.6 86466.8 diff --git a/client/ayon_core/plugins/publish/extract_otio_trimming_video.py b/client/ayon_core/plugins/publish/extract_otio_trimming_video.py index 0c77602681..59b8a714f0 100644 --- a/client/ayon_core/plugins/publish/extract_otio_trimming_video.py +++ b/client/ayon_core/plugins/publish/extract_otio_trimming_video.py @@ -74,9 +74,6 @@ class ExtractOTIOTrimmingVideo(publish.Extractor): otio_range (opentime.TimeRange): range to trim to """ - # Not all hosts can import this module. - from ayon_core.pipeline.editorial import frames_to_seconds - # create path to destination output_path = self._get_ffmpeg_output(input_file_path) diff --git a/tests/client/ayon_core/pipeline/editorial/test_media_range_with_retimes.py b/tests/client/ayon_core/pipeline/editorial/test_media_range_with_retimes.py index 7dca2e087a..ea0b7fbf82 100644 --- a/tests/client/ayon_core/pipeline/editorial/test_media_range_with_retimes.py +++ b/tests/client/ayon_core/pipeline/editorial/test_media_range_with_retimes.py @@ -1,5 +1,4 @@ import os -import pytest import opentimelineio as otio