Open dpeng817 opened 2 years ago
I currently employ my_resource = getattr(context.resources, my_resource_key)
and think this proposed implementation would clean things up a bit.
I believe we use getattr
throughout the system but I do agreed the proposed api is cleaner -- marking this as backlog for now
Use Case
If constructing solids programmatically in a way that is parameterized by resource key, then it's more convenient to access resources by string.
Ideas of Implementation
This implementation could be added relatively straightforwardly to our custom resources object.
Message from the maintainers:
Excited about this feature? Give it a :thumbsup:. We factor engagement into prioritization.