Skip to content
Merged
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
2 changes: 1 addition & 1 deletion preliz/ppls/agnostic.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
try:
from pymc import sample_prior_predictive
except ImportError:
pass
warnings.warn("PyMC not installed. PyMC related functions will not work.")


def posterior_to_prior(model, idata, new_families=None, engine="auto"):
Expand Down
5 changes: 3 additions & 2 deletions preliz/ppls/pymc_io.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Methods to communicate with PyMC."""

import warnings
from copy import copy
from sys import modules

Expand All @@ -11,8 +12,8 @@
from pytensor import function
from pytensor.graph.traversal import ancestors
from pytensor.tensor import TensorConstant, matrix
except ModuleNotFoundError:
pass
except ImportError:
warnings.warn("PyMC not installed. PyMC related functions will not work.")

from preliz.distributions import Gamma, HalfNormal, Normal
from preliz.internal.distribution_helper import get_distributions
Expand Down
Loading