Skip to content
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

BUG: pin PyMC to old version #37

Merged
merged 1 commit into from
Apr 10, 2023
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
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 git@github.com: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