mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 08:50:54 +00:00
Made statement imports explicit
This commit is contained in:
@@ -138,14 +138,14 @@ class Edit:
|
|||||||
else:
|
else:
|
||||||
return self.clip_name_statement.name
|
return self.clip_name_statement.name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def asc_sop(self) -> Optional[StmtCdlSop]:
|
def asc_sop(self) -> Optional[StmtCdlSop]:
|
||||||
"""
|
"""
|
||||||
Get ASC CDL Slope-Offset-Power transfer function for clip, if present
|
Get ASC CDL Slope-Offset-Power transfer function for clip, if present
|
||||||
"""
|
"""
|
||||||
return self.asc_sop_statement
|
return self.asc_sop_statement
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def asc_sat(self) -> Optional[StmtCdlSat]:
|
def asc_sat(self) -> Optional[StmtCdlSat]:
|
||||||
"""
|
"""
|
||||||
Get ASC CDL saturation value for clip, if present
|
Get ASC CDL saturation value for clip, if present
|
||||||
|
|||||||
@@ -2,10 +2,13 @@
|
|||||||
# (c) 2018 Jamie Hardt
|
# (c) 2018 Jamie Hardt
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from collections import namedtuple
|
from typing import TextIO, List
|
||||||
from typing import Any, TextIO, List
|
|
||||||
|
|
||||||
from .statements import *
|
from .statements import (StmtCdlSat, StmtCdlSop, StmtFrmc, StmtRemark,
|
||||||
|
StmtTitle, StmtUnrecognized, StmtFCM, StmtAudioExt,
|
||||||
|
StmtClipName, StmtEffectsName, StmtEvent,
|
||||||
|
StmtSourceFile, StmtSplitEdit, StmtMotionMemory,
|
||||||
|
StmtSourceUMID)
|
||||||
from .util import collimate
|
from .util import collimate
|
||||||
|
|
||||||
|
|
||||||
@@ -107,7 +110,7 @@ def _parse_remark(line, line_number) -> object:
|
|||||||
group_patterns: list[str] = re.findall(r'\((.*?)\)', line)
|
group_patterns: list[str] = re.findall(r'\((.*?)\)', line)
|
||||||
|
|
||||||
v1: list[list[tuple[str, str]]] = [re.findall(r'(-?\d+(\.\d+)?)', a) for
|
v1: list[list[tuple[str, str]]] = [re.findall(r'(-?\d+(\.\d+)?)', a) for
|
||||||
a in group_patterns]
|
a in group_patterns]
|
||||||
|
|
||||||
v: list[list[str]] = [[a[0] for a in b] for b in v1]
|
v: list[list[str]] = [[a[0] for a in b] for b in v1]
|
||||||
|
|
||||||
|
|||||||
@@ -160,4 +160,3 @@ class TestParse(TestCase):
|
|||||||
for event in edl.events:
|
for event in edl.events:
|
||||||
if event.number == 1:
|
if event.number == 1:
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user