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

Improve shared values support #48

Open
antoinevg opened this issue Feb 8, 2024 · 0 comments
Open

Improve shared values support #48

antoinevg opened this issue Feb 8, 2024 · 0 comments
Labels
enhancement potential new feature

Comments

@antoinevg
Copy link
Member

In #13 we introduced support for sharing values between host and device code.

An improvement that would be nice is if we could do:

from .shared.selftest.registers import *

value = SOME_REGISTER

instead of treating selftest as a module containing a collection of nested named tuples:

from .shared import selftest

value = selftest.registers.SOME_REGISTER
@martinling martinling added the enhancement potential new feature label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement potential new feature
Projects
None yet
Development

No branches or pull requests

2 participants