-
Notifications
You must be signed in to change notification settings - Fork 225
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
Allow non-Prior parameters in Prior and media transformations #1292
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1292 +/- ##
==========================================
- Coverage 95.02% 94.96% -0.07%
==========================================
Files 42 42
Lines 4462 4488 +26
==========================================
+ Hits 4240 4262 +22
- Misses 222 226 +4 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice! Two small requests :) WDYT?
@@ -117,7 +120,9 @@ class Transformation: | |||
lookup_name: str | |||
|
|||
def __init__( | |||
self, priors: dict[str, Prior] | None = None, prefix: str | None = None | |||
self, | |||
priors: Prior | float | TensorVariable | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update the type hints in the doctrines 🙏 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Than you @wd60622 !
…abs#1292) * relax constraint while creating distributions * allow for non-prior class inputs in media transformations * test for serialization * test for arbitrary object * relax what is needed and define protocol * add test for arbitrary * update the docstring and type hints * test for the serialization --------- Co-authored-by: Juan Orduz <[email protected]>
Description
Some plotting will not be supported if there are no distribution parameters required
Related Issue
Checklist
Modules affected
Type of change