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

Include Array data to Expression #45

Open
Doomsk opened this issue Dec 10, 2024 · 1 comment
Open

Include Array data to Expression #45

Doomsk opened this issue Dec 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Doomsk
Copy link
Member

Doomsk commented Dec 10, 2024

Besides Numeric (int, float, complex) and Expression, there should be an Array data for a few parameters, such as detuning and amplitude, to be able to use for NativeDrive or other primitives that require interpolation/datapoints.

ping @jpmoutinho @pimvenderbosch

@Doomsk Doomsk added the enhancement New feature or request label Dec 10, 2024
@jpmoutinho
Copy link
Contributor

Like discussed today there are already certain array functionalities in Expressions, although limited or needing some fine-tuning. I will update this comment when I come across things that need fixing:

Currently the size attribute is not updated for an expression that is still an array, e.g.:

expr = array_parameter("b", size = 5)
expr.attrs
> {'size': 5}  # all good

expr = 2.0 * array_parameter("b", size = 5)
expr.attrs
> {}  # size is now missing

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

No branches or pull requests

2 participants