Skip to content

Commit 44a6d99

Browse files
Move sphinx_design to docdeps (#992)
* move sphinx_design to docdeps Signed-off-by: Chris Trevino <chtrevin@microsoft.com> * changed np.float to float as recommended by numpy 1.24 (throws an error otherwise) Signed-off-by: Amit Sharma <amit_sharma@live.com> --------- Signed-off-by: Chris Trevino <chtrevin@microsoft.com> Signed-off-by: Amit Sharma <amit_sharma@live.com> Co-authored-by: Amit Sharma <amit_sharma@live.com>
1 parent e911823 commit 44a6d99

File tree

3 files changed

+35
-34
lines changed

3 files changed

+35
-34
lines changed

dowhy/gcm/shapley.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def _create_subsets_and_weights_exact(num_players: int, high_weight: float) -> T
522522
scipy.special.binom(num_players, subset_size) * subset_size * (num_players - subset_size)
523523
)
524524

525-
return np.array(all_subsets, dtype=np.int32), weights.astype(np.float)
525+
return np.array(all_subsets, dtype=np.int32), weights.astype(float)
526526

527527

528528
def _create_subsets_and_weights_approximation(
@@ -562,7 +562,7 @@ def _create_subsets_and_weights_approximation(
562562

563563
weights = np.array([weights[tuple(x)] for x in all_subsets])
564564

565-
return np.array(all_subsets, dtype=np.int32), weights.astype(np.float)
565+
return np.array(all_subsets, dtype=np.int32), weights.astype(float)
566566

567567

568568
def _convert_list_of_indices_to_binary_vector_as_tuple(list_of_indices: List[int], num_players: int) -> Tuple[int]:

poetry.lock

+31-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ causal-learn = ">=0.1.3.0"
6969

7070
#Plotting Extra
7171
matplotlib = { version = ">=3.5.3", optional = true }
72-
sphinx_design = "^0.3.0"
7372
cvxpy = "^1.2.2"
7473

7574
[tool.poetry.extras]
@@ -109,6 +108,8 @@ optional = true
109108
#
110109
# Dependencies for Documentation Generation
111110
#
111+
112+
sphinx_design = "^0.3.0"
112113
sphinx = "^5.3.0"
113114
sphinxcontrib-googleanalytics = { git = "https://github.com/sphinx-contrib/googleanalytics.git", branch = "master" }
114115
nbsphinx = "^0.8.9"

0 commit comments

Comments
 (0)