Skip to content

Commit

Permalink
fix for scipy 1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia committed Aug 11, 2023
1 parent d887033 commit f7a4b4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ disable=missing-docstring,
too-many-statements,
too-few-public-methods,
import-error,
protected-access
protected-access,
no-self-use


# Enable the message, report, category or checker with the given id(s). You can
Expand Down
2 changes: 1 addition & 1 deletion preliz/distributions/discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def support(self, *args, **kwds): # pylint: disable=unused-argument

def cdf(self, x, *args, **kwds): # pylint: disable=unused-argument
x = np.asarray(x)
return 1 - self.q ** ((x + 1) ** self.beta)
return np.nan_to_num(1 - self.q ** ((x + 1) ** self.beta))

def pmf(self, x, *args, **kwds): # pylint: disable=unused-argument
x = np.asarray(x)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"arviz",
"matplotlib>=3.5",
"numpy>=1.22",
"scipy>=1.9.1,<1.11.0",
"scipy>=1.9.1",
]

[tool.flit.module]
Expand Down

0 comments on commit f7a4b4a

Please sign in to comment.