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

simple math transformation with mappings #199

Open
LasseNT opened this issue Nov 17, 2022 · 0 comments
Open

simple math transformation with mappings #199

LasseNT opened this issue Nov 17, 2022 · 0 comments
Assignees

Comments

@LasseNT
Copy link
Collaborator

LasseNT commented Nov 17, 2022

It would be great to be able to setup mappings as simple equations

a = (b +c) * 3

a -= 2 * b + 5

or maybe:
a.map(b, scale=-10, offset=4)

The pain point is now primarily that creating variables in scopes for simply inverting the sign of another variable before mapping is quite cumbersome.

Supporting units and operations between units will be simpler if scaling and offset could be added to mappings.

@artem-chupryna artem-chupryna self-assigned this Nov 25, 2022
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

No branches or pull requests

2 participants