Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Local/aroma integrate 3de4 #6247

Closed

Conversation

eng-EslamEzzat
Copy link

Changelog Description

Paragraphs contain detailed information on the changes made to the product or service, providing an in-depth description of the updates and enhancements. They can be used to explain the reasoning behind the changes, or to highlight the importance of the new features. Paragraphs can often include links to further information or support documentation.

Additional info

Paragraphs of text giving context of additional technical information or code examples.

Testing notes:

  1. start with this step
  2. follow this step

antirotor and others added 30 commits September 13, 2023 14:35
…gration' into feature/OP-6032_3dequalizer-integration
@ynbot ynbot added the size/XXL Denotes a PR changes 2500+ lines, ignoring general files label Mar 22, 2024
else:
overscan_width, overscan_height = 100, 100
# raise PublishValidationError("You must extract the undistorted footage first to get the overscan")

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank line contains whitespace

overscan_width, overscan_height = overscan.values()
else:
overscan_width, overscan_height = 100, 100
# raise PublishValidationError("You must extract the undistorted footage first to get the overscan")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (112 > 79 characters)
trailing whitespace

)
from openpype.pipeline import PublishValidationError

@six.add_metaclass(ABCMeta)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected 2 blank lines, found 1

Creator,
OptionalPyblishPluginMixin,
)
from openpype.pipeline import PublishValidationError
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'openpype.pipeline.PublishValidationError' imported but unused


# TODO EDITED
# change_anim = QtCore.QVariantAnimation()
class VariantAnimation(QtCore.QVariantAnimation):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected 1 blank line before a nested definition, found 0

return current_filepath


def get_overscan(self):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many blank lines (2)

def open_workfile(self, filepath):
result = tde4.loadProject(filepath)
if not bool(result):
raise RuntimeError("Failed to open workfile %s."%filepath)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing whitespace around modulo operator

def save_workfile(self, filepath=None):
result = tde4.saveProject(filepath)
if not bool(result):
raise RuntimeError("Failed to save workfile %s."%filepath)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing whitespace around modulo operator

import contextlib
import tde4

@attr.s
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected 2 blank lines, found 1

#
# TODO Replacement for the above code.
QtCore.QObject.connect(plugins_view.selectionModel(),
QtCore.SIGNAL('selectionChanged(QItemSelection,QItemSelection)'), self._on_plugin_change)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (120 > 79 characters)

# )
# TODO Replacement for the above code.
QtCore.QObject.connect(instances_view.selectionModel(),
QtCore.SIGNAL('selectionChanged(QItemSelection,QItemSelection)'), self._on_instance_change)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (122 > 79 characters)


# TODO Replacement of the above code
QtCore.QObject.connect(instance_view.selectionModel(),
QtCore.SIGNAL('selectionChanged(QItemSelection,QItemSelection)'), self._on_selection_change)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (123 > 79 characters)

icon = "glasses"

def create(self, subset_name, instance_data, pre_create_data):
super(CreateLensDistortionData, self).create(subset_name, instance_data, pre_create_data)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (97 > 79 characters)


def create(self, subset_name, instance_data, pre_create_data):
self.log.debug("CreateMatchMove.create")
super(CreateMatchMove, self).create(subset_name, instance_data, pre_create_data)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (88 > 79 characters)

@@ -0,0 +1,57 @@
import tde4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'tde4' imported but unused

tde4.setLensFocalLength(lens_id, float(camera_focal[0]))


def update(self, container, representation):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many blank lines (2)

if 'camera_focal' in metadata_attrs:
camera_focal = metadata_attrs['camera_focal'].split()
if camera_focal[1] == 'mm':
tde4.setLensFocalLength(lens_id, float(camera_focal[0])/10)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing whitespace around arithmetic operator

for a in root.findall("attribute"):
name = a.find("name").text
value = a.find("value").text
if name and value: metadata_attrs[name] = value
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiple statements on one line (colon)

frame_path = tde4.getCameraFrameFilepath(camera_id, frame)
try:
xml = tde4.convertOpenEXRMetaDataToXML(frame_path)
except:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use bare except:, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer except Exception:. If you're sure what you're doing, be explicit and write except BaseException:.
do not use bare 'except'

EqualizerHost.get_host().add_container(container)


def _assignMetaData(self, camera_id, lens_id):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many blank lines (2)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Maya host: Nuke host: Resolve size/XXL Denotes a PR changes 2500+ lines, ignoring general files type: documentation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants