Skip to content

Commit

Permalink
BUG: pin PyMC to old version
Browse files Browse the repository at this point in the history
Also update docs to correspond; see issue #36 for details.
  • Loading branch information
aflaxman committed Apr 10, 2023
1 parent 5ba527e commit 27e0d6e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
21 changes: 14 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
:target: https://travis-ci.org/ihmeuw/dismod_mr
:alt: Latest Version

============
Introduction
============

This project is the descriptive epidemiological meta-regression tool,
DisMod-MR, which grew out of the Global Burden of Disease (GBD) Study
2010. DisMod-MR has been developed for the Institute of Health
Expand All @@ -27,11 +23,11 @@ Dismod MR requires PyMC2 which does not play nicely with normal Python
installation tools. Fortunately, ``conda`` has solved this issue for us.
So first you'll need to setup a conda environment
(after `installing conda, if necessary <https://docs.conda.io/projects/conda/en/latest/user-guide/install/>`_)
and install ``pymc``. Then you can install ``dismod_mr`` using ``pip``.
and install ``pymc`` version ``2.3.8``. Then you can install ``dismod_mr`` using ``pip``.

.. code-block:: sh
conda create --name=dismod_mr python=3.6 pymc
conda create --name=dismod_mr python=3.6 pymc==2.3.8
conda activate dismod_mr
pip install dismod_mr
Expand Down Expand Up @@ -61,12 +57,23 @@ package index.

.. code-block:: sh
conda create --name=dismod_mr python=3.6 pymc
conda create --name=dismod_mr python=3.6 pymc==2.3.8
conda activate dismod_mr
git clone [email protected]:ihmeuw/dismod_mr.git
cd dismod_mr
pip install -e .
To test this, you can use ``pytest``, which you must first install.

.. code-block:: sh
pip install pytest
pytest
If you have things setup right, this will still generate many
warnings, but there should be no tests that produce failures or
errors.

Coding Practices
----------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
install_requirements = [
'numpy>=1.7.1',
'scipy>=0.12.0',
'pymc>=2.3.6',
'pymc==2.3.8',
'networkx==2.3',
'pandas>=0.23.4,<1.1',
'numba==0.51.0',
Expand Down

0 comments on commit 27e0d6e

Please sign in to comment.