Skip to content

Commit

Permalink
Enable support for dowhy 0.12
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Battocchi <kebatt@microsoft.com>
  • Loading branch information
kbattocchi committed Dec 6, 2024
1 parent 7c35d27 commit f49f9d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions econml/dowhy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class DoWhyWrapper:

def __init__(self, cate_estimator):
from packaging.version import parse
if parse(dowhy.__version__) >= parse('0.12'):
warnings.warn("econml has not been tested with dowhy versions >= 0.12")
if parse(dowhy.__version__) >= parse('0.13'):
warnings.warn("econml has not been tested with dowhy versions >= 0.13")
self._cate_estimator = cate_estimator

def _get_params(self):
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ plt = [
]
dowhy = [
# when updating this, also update the version check in dowhy.py
"dowhy < 0.12; python_version > '3.8'",
"dowhy < 0.13; python_version > '3.8'",
# Version capped due to scipy incompatibility - can't import dowhy 0.11.1 with scipy 1.4.1
"dowhy < 0.11; python_version <= '3.8'"
]
Expand All @@ -79,7 +79,7 @@ all = [
"numpy < 1.24; python_version < '3.9'",
"graphviz",
"matplotlib",
"dowhy < 0.12; python_version > '3.8'",
"dowhy < 0.13; python_version > '3.8'",
# Version capped due to scipy incompatibility - can't import dowhy 0.11.1 with scipy 1.4.1
"dowhy < 0.11; python_version <= '3.8'",
"ray > 2.2.0"
Expand Down

0 comments on commit f49f9d9

Please sign in to comment.