Skip to content

Commit

Permalink
Merge branch 'pr/801' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
twopirllc committed Jun 24, 2024
2 parents ce79651 + 878ee1b commit 0c2d077
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pandas_ta/utils/_stats.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from numpy import array, infty, log, nan, pi, sqrt
from numpy import array, inf, log, nan, pi, sqrt
from pandas_ta._typing import Array, IntFloat, Number, Union
from pandas_ta.maps import Imports
from pandas_ta.utils import hpoly
Expand Down
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ def test_inv_norm_isnan(value, result):
reason="Passes on Mac... yet fails on Ubuntu 3.9 (Github Action)"
)
@mark.parametrize("value,result", [
(0, -np.infty), (1 - 0.96, -1.7506860712521692),
(0, -np.inf), (1 - 0.96, -1.7506860712521692),
# (1 - 0.8646, -1.101222112591979), # FAILs with Python 3.11.7 on Mac
param(1 - 0.8646, -1.101222112591979, marks=mark.xfail),
(0.5, 0),
# (0.8646, 1.101222112591979), # FAILs with Python 3.11.7 on Mac
param(0.8646, 1.101222112591979, marks=mark.xfail),
(0.96, 1.7506860712521692), (1, np.infty)
(0.96, 1.7506860712521692), (1, np.inf)
])
def test_inv_norm_value(value, result):
assert ta.utils.inv_norm(value) == result
Expand Down

0 comments on commit 0c2d077

Please sign in to comment.