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

[feaLib] Simplify variable scalars that don’t vary #3132

Merged
merged 2 commits into from May 27, 2023

Conversation

khaledhosny
Copy link
Collaborator

If a variable scalar does not vary (i.e. all values are the same), we can simplify it and use a simple value instead. Arguably users shouldn’t be using variable scalar in this case, but it helps when the feature code is auto generated so each feaLib users doesn’t have to do the check done here themselves.

Refactor-out this piece of code to simplify the next commit.
If a variable scalar does not vary (i.e. all values are the same), we
can simplify it and use a simple value instead. Arguably users shouldn’t
be using variable scalar in this case, but it helps when the feature
code is auto generated so each feaLib users doesn’t have to do the
check done here themselves.
@behdad behdad requested a review from simoncozens May 27, 2023 14:21
@khaledhosny khaledhosny merged commit 96bede3 into main May 27, 2023
10 checks passed
@khaledhosny khaledhosny deleted the fealib-simplify-variablescaler branch May 27, 2023 15:20
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

2 participants