Skip to content

Commit 33f0ff9

Browse files
authored
Version Bump: 0.7.1 (#398)
* updated test setup and added new version * removed advanced tests * updated readme
1 parent 77906cd commit 33f0ff9

File tree

8 files changed

+34
-19
lines changed

8 files changed

+34
-19
lines changed

.github/workflows/python-package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3939
- name: Test with pytest
4040
run: |
41-
pytest
41+
pytest -v -m "not advanced"
4242
- name: Check package consistency with twine
4343
run: |
4444
python setup.py check sdist bdist_wheel

README.rst

+1-10
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,11 @@ For a quick introduction to causal inference, check out `amit-sharma/causal-infe
3737

3838
Documentation for DoWhy is available at `microsoft.github.io/dowhy <https://microsoft.github.io/dowhy/>`_.
3939

40-
.. raw:: html
41-
42-
<details>
43-
<summary><a><strong><em>Table of Contents</em></strong></summary>
44-
4540
.. i here comment toctree::
4641
.. i here comment :maxdepth: 4
4742
.. i here comment :caption: Contents:
48-
.. contents::
49-
50-
.. raw:: html
43+
.. contents:: **Contents**
5144

52-
</details>
53-
5445
News
5546
-----
5647
**2022.03.13**: **Call for Content**.

docs/source/code_repo.rst

+16
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ DoWhy is hosted on GitHub.
66
You can browse the code in a html-friendly format `here
77
<https://github.com/Microsoft/dowhy>`_.
88

9+
v0.7.1: Added Graph refuter. Support for dagitty graphs and external estimators
10+
--------------------------------------------------------------------------------------
11+
12+
* Graph refuter with conditional independence tests to check whether data conforms to the assumed causal graph
13+
14+
* Better docs for estimators by adding the method-specific parameters directly in its own init method
15+
16+
* Support use of custom external estimators
17+
18+
* Consistent structure for init_params for dowhy and econml estimators
19+
20+
* Add support for Dagitty graphs
21+
22+
* Bug fixes for GLM model, causal model with no confounders, and hotel case-study notebook
23+
24+
Thank you @EgorKraevTransferwise, @ae-foster, @anusha0409 for your contributions!
925

1026
v0.7: Better Refuters for unobserved confounders and placebo treatment
1127
----------------------------------------------------------------------

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author = 'Amit Sharma, Emre Kiciman'
2525

2626
# The short X.Y version
27-
version = '0.7'
27+
version = '0.7.1'
2828
# The full version, including alpha/beta/rc tags
2929
release = ''
3030

dowhy/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7
1+
0.7.1

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[tool.pytest.ini_options]
2+
markers = [
3+
"advanced: not be to run each time. only on package updates."
4+
]

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
license='MIT',
4040
long_description=long_description,
4141
url='https://github.com/microsoft/dowhy', # Optional
42-
download_url='https://github.com/microsoft/dowhy/archive/v0.7.tar.gz',
42+
download_url='https://github.com/microsoft/dowhy/archive/v0.7.1.tar.gz',
4343
author='Amit Sharma, Emre Kiciman',
4444
classifiers=[ # Optional
4545
'Development Status :: 4 - Beta',

tests/test_notebooks.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"dowhy_refuter_notebook.ipynb",
2222
"DoWhy-The Causal Story Behind Hotel Booking Cancellations.ipynb", # needs xgboost too
2323
# will be removed
24-
"dowhy_optimize_backdoor_example.ipynb"
24+
"dowhy_optimize_backdoor_example.ipynb",
25+
# applied notebook, not necessary to test each time
26+
"dowhy_ranking_methods.ipynb"
2527
]
2628

2729
# Adding the dowhy root folder to the python path so that jupyter notebooks
@@ -62,14 +64,16 @@ def test_confounder_notebook():
6264
nb, errors = _notebook_run(NOTEBOOKS_PATH+"dowhy_confounder_example.ipynb")
6365
assert errors = []
6466
"""
65-
parameter_list=[]
67+
parameter_list = []
6668
for nb in notebooks_list:
6769
if nb in advanced_notebooks:
6870
param = pytest.param(nb,
69-
marks=[pytest.mark.skip, pytest.mark.advanced],
70-
id=nb)
71+
marks=[pytest.mark.advanced, pytest.mark.notebook],
72+
id=nb)
7173
else:
72-
param = pytest.param(nb, id=nb)
74+
param = pytest.param(nb,
75+
marks=[pytest.mark.notebook],
76+
id=nb)
7377
parameter_list.append(param)
7478

7579
@pytest.mark.parametrize("notebook_filename", parameter_list)

0 commit comments

Comments
 (0)