Skip to content
Merged
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ For more instructions see the [Pull request checklist](#pull-request-checklist)

Always use a feature branch. It's good practice to never routinely work on the `main` branch of any repository.

1. Create a new environment using Python >=3.10, for example 3.11
1. Create the environment from the `environment.yml` file.

```bash
conda create --name CausalPy python=3.11
mamba env create -f environment.yml
```

Activate the environment.
Expand All @@ -59,7 +59,7 @@ For more instructions see the [Pull request checklist](#pull-request-checklist)
conda activate CausalPy
```

Install the package (in editable mode) and its development dependencies:
Install the package (in editable mode) and its development dependencies. The `--no-deps` flag is used to avoid installing the dependencies of `CausalPy` as they are already installed when installing the development dependencies. This can end up interfering with the conda-only install of pymc.

```bash
pip install --no-deps -e .
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: init lint check_lint test

init:
python -m pip install -e .
python -m pip install -e . --no-deps

lint:
ruff check --fix .
Expand Down
26 changes: 9 additions & 17 deletions docs/source/notebooks/did_pymc.ipynb

Large diffs are not rendered by default.

61 changes: 31 additions & 30 deletions docs/source/notebooks/did_pymc_banks.ipynb

Large diffs are not rendered by default.

32 changes: 12 additions & 20 deletions docs/source/notebooks/geolift1.ipynb

Large diffs are not rendered by default.

38 changes: 15 additions & 23 deletions docs/source/notebooks/its_covid.ipynb

Large diffs are not rendered by default.

64 changes: 28 additions & 36 deletions docs/source/notebooks/its_pymc.ipynb

Large diffs are not rendered by default.

47 changes: 20 additions & 27 deletions docs/source/notebooks/rd_pymc.ipynb

Large diffs are not rendered by default.

79 changes: 51 additions & 28 deletions docs/source/notebooks/rd_pymc_drinking.ipynb

Large diffs are not rendered by default.

65 changes: 30 additions & 35 deletions docs/source/notebooks/rkink_pymc.ipynb

Large diffs are not rendered by default.

70 changes: 32 additions & 38 deletions docs/source/notebooks/sc_pymc.ipynb

Large diffs are not rendered by default.

291 changes: 146 additions & 145 deletions docs/source/notebooks/sc_pymc_brexit.ipynb

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CausalPy
channels:
- conda-forge
dependencies:
- arviz>=0.14.0
- graphviz
- ipython!=8.7.0
- matplotlib>=3.5.3
- numpy<1.26.0
- pandas
- patsy
- pymc>=5.14.0
- scikit-learn>=1
- scipy
- seaborn>=0.11.2
- statsmodels
- xarray>=v2022.11.0