Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
iluvcapra committed Dec 11, 2023
1 parent b7b3083 commit dfc24c2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ptsl/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
ImportSessionDataBuilder

import ptsl.PTSL_pb2 as pt
from ptsl.PTSL_pb2 import SessionAudioFormat, BitDepth, FileLocation, \
from ptsl.PTSL_pb2 import SessionAudioFormat, BitDepth, FileLocation, \
EM_FileType, EM_SourceInfo, EM_AudioInfo, EM_VideoInfo, \
EM_LocationInfo, EM_DolbyAtmosInfo, TripleBool, SessionTimeCodeRate, \
SessionFeetFramesRate, SessionRatePull, Track, \
Expand All @@ -28,6 +28,7 @@
MemoryLocationReference, MemoryLocationProperties, \
TimeProperties, CL_ClipLocation


@contextmanager
def open_engine(*args, **kwargs):
"""
Expand Down Expand Up @@ -322,7 +323,7 @@ def record_half_speed(self):
"""
self.client.run(ops.RecordHalfSpeed())

def create_memory_location(self,
def create_memory_location(self,
location_number: int,
name: str,
start_time: str,
Expand All @@ -336,7 +337,7 @@ def create_memory_location(self,
"""
op = ops.CreateMemoryLocation(
number=location_number,
name=name,
name=name,
start_time=start_time,
end_time=end_time,
time_properties=time_properties,
Expand All @@ -347,19 +348,17 @@ def create_memory_location(self,

self.client.run(op)


def get_edit_mode(self):
"""
:returns: The current edit mode and options:
"""
op = ops.GetEditMode()
self.client.run(op)
mode = op.response.current_setting
# mode = op.response.current_setting

op2 = ops.GetEditModeOptions()
self.client.run(op2)
options = op.response.edit_mode_options

# options = op.response.edit_mode_options

def edit_memory_location(self, location_number: int,
name: str,
Expand Down

0 comments on commit dfc24c2

Please sign in to comment.