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

Clean up parameter names with [i] in them #10

Open
ukBaz opened this issue Jul 5, 2024 · 0 comments
Open

Clean up parameter names with [i] in them #10

ukBaz opened this issue Jul 5, 2024 · 0 comments

Comments

@ukBaz
Copy link
Owner

ukBaz commented Jul 5, 2024

One last question, how do you access the controller_index array?

To get values from such parameters it is necessary to do:

>>> data.cmd_response_frame.__getattribute__('controller_index[i]')
[0]

Which is clearly not practical (or intended). This looks to be introduced because of the automatic generation of the structure from the API documentation which has the parameter name Controller_Index[i]

There are a few others with a similar looking issue and need the [i] removed

Originally posted by @ukBaz in #8 (comment)

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

1 participant