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

[BugFix] Fixing descriptions of inversed NamedTransforms #117

Conversation

ajymoonILM
Copy link
Contributor

Generate the transform description based on the transform's direction.

Resolves: #111

Generate the transform description based on the transform's direction.

Resolves: AcademySoftwareFoundation#111

Signed-off-by: Allison Moon <147774452+ajymoonILM@users.noreply.github.com>
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 12, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@doug-walker
Copy link
Contributor

Thanks for this fix @ajymoonILM ! I had to manually start the CI unit tests, since you are a new contributor. It looks like they will succeed.

Please let us know if you have suggestions for how to improve the installation instructions (at a minimum it seems we need to clarify that one should start a Poetry shell before using the invoke command).

@KelSolaar
Copy link
Contributor

KelSolaar commented Oct 16, 2023

Thanks a lot @ajymoonILM!

I haven't checked the artifacts but the code seems to do what we want! The only thing I have to say is that I would prefer to rename inverse_direction to direction and that we pass a Literal to it, it would be consistent with OCIO and the rest of the current API (and that of OCIO): https://github.com/search?q=repo%3AAcademySoftwareFoundation%2FOpenColorIO-Config-ACES%20direction%3D&type=code,

- changing function args from `inverse_direction` (bool) to `direction` (str)

Signed-off-by: Allison Moon <147774452+ajymoonILM@users.noreply.github.com>
@ajymoonILM
Copy link
Contributor Author

Thanks @KelSolaar !
Makes sense to me to keep consistency! Just pushed a new commit that addresses your review. Let me know if there's anything else that needs to be updated.

@@ -204,7 +205,7 @@ def clf_transform_to_description(
DescriptionStyle.SHORT_UNION,
):
if clf_transform.description is not None:
if inverse_direction:
if direction == "Forward":
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe if direction.lower() == "forward": so that it becomes case insensitive?

LGTM otherwise and thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated with the case insensitive check.
Let me know of anything else that needs to be addressed!

Copy link
Contributor

Choose a reason for hiding this comment

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

We are good! Thanks a lot @ajymoonILM!

- Case-insensitive check of `direction` args

Signed-off-by: Allison Moon <147774452+ajymoonILM@users.noreply.github.com>
Copy link
Contributor

@KelSolaar KelSolaar left a comment

Choose a reason for hiding this comment

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

LGTM!

@KelSolaar KelSolaar merged commit 1dc869d into AcademySoftwareFoundation:main Oct 18, 2023
9 checks passed
@KelSolaar KelSolaar mentioned this pull request Aug 9, 2024
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.

Description of gamma named transforms is inverted
3 participants