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

Implement __getattr__ for Prior class #1352

Open
wd60622 opened this issue Jan 8, 2025 · 0 comments
Open

Implement __getattr__ for Prior class #1352

wd60622 opened this issue Jan 8, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers . Doesn't require extensive knowledge of the repo and package Prior class

Comments

@wd60622
Copy link
Contributor

wd60622 commented Jan 8, 2025

I would be nice to be able to dot into Prior class and get the parameter. For instance dist.mu. Would be similar or same implementation to this:

def __getitem__(self, key: str) -> Prior | Any:
"""Return the parameter of the prior."""
return self.parameters[key]

@wd60622 wd60622 added enhancement New feature or request Prior class good first issue Good for newcomers . Doesn't require extensive knowledge of the repo and package and removed Needs Triage labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers . Doesn't require extensive knowledge of the repo and package Prior class
Projects
None yet
Development

No branches or pull requests

1 participant