Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Typo #1615

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sobotka
Copy link
Contributor

@sobotka sobotka commented Mar 15, 2022

Fix minor typo in NamedTransform.

Example output currently:

[...]
Invoked with: kwargs: referenceSpace=<ReferenceSpaceType.REFERENCE_SPACE_DISPLAY: 1>, name='sRGB Display View', description='IEC 61966-2-1:1999 Reference sRGB Display', toReference=<NamedTransform name=Identity Transformalias=
[...]

Note how the toReference line lacks the comma.

Fix minor typo in NamedTransform.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 15, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: sobotka / name: Troy James Sobotka (a6a66dd)

@nadiashomali
Copy link

Fix minor typo in NamedTransform.

@hodoulp
Copy link
Member

hodoulp commented Mar 21, 2022

Hi @sobotka & @nadiashomali
Thanks for your contribution.

There two points to fix:

  1. The DCO failed.
  2. There is a unit failure:
2: [ 528/1024] [MathUtils / halfs_differ_test                               ] - PASSED
2: [ 529/1024] [MathUtils / clamp                                           ] - PASSED
2: /Users/runner/work/OpenColorIO/OpenColorIO/tests/cpu/NamedTransform_tests.cpp:44:
2: FAILED: oss.str() == "<NamedTransform name=NewName,\n    forward=\n        " "<MatrixTransform direction=forward, fileindepth=unknown, " "fileoutdepth=unknown, matrix=1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1, " "offset=0 0 0 0>>"
2: 	values were '<NamedTransform name=NewName, ,
2:     forward=
2:         <MatrixTransform direction=forward, fileindepth=unknown, fileoutdepth=unknown, matrix=1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1, offset=0 0 0 0>>' and '<NamedTransform name=NewName,
2:     forward=
2:         <MatrixTransform direction=forward, fileindepth=unknown, fileoutdepth=unknown, matrix=1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1, offset=0 0 0 0>>'
2: [ 530/1024] [NamedTransform / basic                                      ] - FAILED
2: [ 531/1024] [NamedTransform / alias                                      ] - PASSED

@@ -240,7 +240,7 @@ std::ostream & operator<< (std::ostream & os, const NamedTransform & t)
{
os << "<NamedTransform ";
const std::string strName{ t.getName() };
os << "name=" << strName;
os << "name=" << strName << ", ";
Copy link
Member

Choose a reason for hiding this comment

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

If there is no aliases the line 261 prepend a comma which conflicts with the comma added here. The comma logic in the method is to always prepend a comma (and not append it). So, the comma error is in the alias code block.

@hodoulp
Copy link
Member

hodoulp commented Apr 5, 2022

Hi @sobotka & @nadiashomali. Your finding remains a bug that it would be great to have in the next releases. After my review I found that the fix is not complete but contact us if there is still something unclear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants