-
Notifications
You must be signed in to change notification settings - Fork 128
Local/aroma integrate 3de4 #6247
Local/aroma integrate 3de4 #6247
Conversation
…equalizer-integration
…equalizer-integration
…equalizer-integration
…gration' into feature/OP-6032_3dequalizer-integration
…equalizer-integration
else: | ||
overscan_width, overscan_height = 100, 100 | ||
# raise PublishValidationError("You must extract the undistorted footage first to get the overscan") | ||
|
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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)
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: