Skip to content

Commit

Permalink
add legacy messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia committed May 30, 2024
1 parent 10c914b commit f102009
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

|Build Status| |Coverage| |NumFOCUS_badge| |Binder| |Dockerhub|

.. warning::
This is the legacy version of PyMC3, now renamed to PyMC.
If you are looking for the latest version of PyMC, please visit
`PyMC's documentation <https://www.pymc.io/welcome.html>`__


PyMC3 is a Python package for Bayesian statistical modeling and Probabilistic Machine Learning
focusing on advanced Markov chain Monte Carlo (MCMC) and variational inference (VI)
algorithms. Its flexibility and extensibility make it applicable to a
Expand Down
4 changes: 4 additions & 0 deletions pymc3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
handler = logging.StreamHandler()
_log.addHandler(handler)

_log.warning("The version of PyMC you are using is very outdated.\n\nPlease upgrade to the latest "
"version of PyMC https://www.pymc.io/projects/docs/en/stable/installation.html\n\n"
"Also notice that PyMC3 has been renamed to PyMC."
)

def _check_backend_version():
backend_paths = theano.__spec__.submodule_search_locations
Expand Down
6 changes: 6 additions & 0 deletions pymc3/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,12 @@ def sample(
mean sd hdi_3% hdi_97%
p 0.609 0.047 0.528 0.699
"""

_log.info("The version of PyMC you are using is very outdated.\n\nPlease upgrade to the latest "
"version of PyMC https://www.pymc.io/projects/docs/en/stable/installation.html\n\n"
"Also notice that PyMC3 has been renamed to PyMC."
)

model = modelcontext(model)
start = deepcopy(start)
if start is None:
Expand Down

0 comments on commit f102009

Please sign in to comment.