mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #312 from BigRoy/chore/extract_review_typos
Extract Review: Fix typos + remove unused variable
This commit is contained in:
commit
69e08a7e13
1 changed files with 10 additions and 20 deletions
|
|
@ -619,7 +619,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
# Prepare input and output filepaths
|
||||
self.input_output_paths(new_repre, output_def, temp_data)
|
||||
|
||||
# Set output frames len to 1 when ouput is single image
|
||||
# Set output frames len to 1 when output is single image
|
||||
if (
|
||||
temp_data["output_ext_is_image"]
|
||||
and not temp_data["output_is_sequence"]
|
||||
|
|
@ -955,7 +955,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
|
||||
self.log.debug("New representation ext: `{}`".format(output_ext))
|
||||
|
||||
# Output is image file sequence witht frames
|
||||
# Output is image file sequence with frames
|
||||
output_ext_is_image = bool(output_ext in self.image_exts)
|
||||
output_is_sequence = bool(
|
||||
output_ext_is_image
|
||||
|
|
@ -967,7 +967,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
frame_end = temp_data["output_frame_end"]
|
||||
|
||||
filename_base = "{}_{}".format(filename, filename_suffix)
|
||||
# Temporary tempalte for frame filling. Example output:
|
||||
# Temporary template for frame filling. Example output:
|
||||
# "basename.%04d.exr" when `frame_end` == 1001
|
||||
repr_file = "{}.%{:0>2}d.{}".format(
|
||||
filename_base, len(str(frame_end)), output_ext
|
||||
|
|
@ -997,7 +997,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
self.log.debug("Creating dir: {}".format(dst_staging_dir))
|
||||
os.makedirs(dst_staging_dir)
|
||||
|
||||
# Store stagingDir to representaion
|
||||
# Store stagingDir to representation
|
||||
new_repre["stagingDir"] = dst_staging_dir
|
||||
|
||||
# Store paths to temp data
|
||||
|
|
@ -1228,16 +1228,6 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
reformat_in_baking = bool("reformated" in new_repre["tags"])
|
||||
self.log.debug("reformat_in_baking: `{}`".format(reformat_in_baking))
|
||||
|
||||
# Get instance data
|
||||
pixel_aspect = temp_data["pixel_aspect"]
|
||||
|
||||
if reformat_in_baking:
|
||||
self.log.debug((
|
||||
"Using resolution from input. It is already "
|
||||
"reformated from upstream process"
|
||||
))
|
||||
pixel_aspect = 1
|
||||
|
||||
# NOTE Skipped using instance's resolution
|
||||
full_input_path_single_file = temp_data["full_input_path_single_file"]
|
||||
try:
|
||||
|
|
@ -1268,7 +1258,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
if reformat_in_baking:
|
||||
self.log.debug((
|
||||
"Using resolution from input. It is already "
|
||||
"reformated from upstream process"
|
||||
"reformatted from upstream process"
|
||||
))
|
||||
pixel_aspect = 1
|
||||
output_width = input_width
|
||||
|
|
@ -1374,7 +1364,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
# Make sure output width and height is not an odd number
|
||||
# When this can happen:
|
||||
# - if output definition has set width and height with odd number
|
||||
# - `instance.data` contain width and height with odd numbeer
|
||||
# - `instance.data` contain width and height with odd number
|
||||
if output_width % 2 != 0:
|
||||
self.log.warning((
|
||||
"Converting output width from odd to even number. {} -> {}"
|
||||
|
|
@ -1555,7 +1545,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
custom_tags (list): Custom Tags of processed representation.
|
||||
|
||||
Returns:
|
||||
list: Containg all output definitions matching entered tags.
|
||||
list: Containing all output definitions matching entered tags.
|
||||
"""
|
||||
|
||||
filtered_outputs = []
|
||||
|
|
@ -1820,8 +1810,8 @@ class OverscanCrop:
|
|||
"""
|
||||
# crop=width:height:x:y - explicit start x, y position
|
||||
# crop=width:height - x, y are related to center by width/height
|
||||
# pad=width:heigth:x:y - explicit start x, y position
|
||||
# pad=width:heigth - x, y are set to 0 by default
|
||||
# pad=width:height:x:y - explicit start x, y position
|
||||
# pad=width:height - x, y are set to 0 by default
|
||||
|
||||
width = self.width()
|
||||
height = self.height()
|
||||
|
|
@ -1869,7 +1859,7 @@ class OverscanCrop:
|
|||
# Replace "px" (and spaces before) with single space
|
||||
string_value = re.sub(r"([ ]+)?px", " ", string_value)
|
||||
string_value = re.sub(r"([ ]+)%", "%", string_value)
|
||||
# Make sure +/- sign at the beggining of string is next to number
|
||||
# Make sure +/- sign at the beginning of string is next to number
|
||||
string_value = re.sub(r"^([\+\-])[ ]+", "\g<1>", string_value)
|
||||
# Make sure +/- sign in the middle has zero spaces before number under
|
||||
# which belongs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue