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

Access and modification of master parameters #76

Open
shervin86 opened this issue Sep 16, 2022 · 1 comment
Open

Access and modification of master parameters #76

shervin86 opened this issue Sep 16, 2022 · 1 comment

Comments

@shervin86
Copy link
Contributor

Here's an example usage that seems natural but does not work.

myinstrument = ....
a2 = myinstrument.master["a2"]
a2.value = 5

with a2 a master parameter, setting directly the value is not changing the values in the calculators linked to this master.
One should instead do myinstrument.master["a2"] = 5, so using the setitem method of MasterParameters.

We should think a way to make the example work. I don't see ways to disallow a user to do as in my example.

@JunCEEE
Copy link
Contributor

JunCEEE commented Aug 3, 2023

Hi @shervin86 are you still available on slack?

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