Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pymc_extras/prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ def create_variable(self, name: str) -> pt.TensorVariable:

def transform(var):
return pm.Deterministic(name, self.pytensor_transform(var), dims=self.dims)

else:
var_name = name

Expand Down Expand Up @@ -1575,9 +1576,9 @@ def __getattr__(name: str):
samples = dist.sample_prior(coords={"channel": ["C1", "C2", "C3"]})

"""
# Protect against doctest
if name == "__wrapped__":
return
# Protect against Sphinx/RTD introspection of dunder attributes
if name.startswith("__") and name.endswith("__"):
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
Comment on lines +1579 to +1581
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this, it's unrelated this to PR (cherry pick it if you want to fix the issue)


_get_pymc_distribution(name)
return partial(Prior, distribution=name)
Loading
Loading