Skip to content

Commit

Permalink
Improve the is_close parameters with kwargs at array module
Browse files Browse the repository at this point in the history
  • Loading branch information
neyberson committed May 29, 2024
1 parent 7e9cade commit 665c657
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pozo/utils/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def summarize_array(depth):
_d("""is_close has 4 parameters, this return a boolean value that verify the cosistent
from the depth data""")
)
def is_close(a, b, rel_tol, abs_tol):
def is_close(a, b, **kwargs):
rel_tol = kwargs.pop("rel_tol", 1e-9)
abs_tol = kwargs.pop("abs_tol", 0)
return math.isclose(a=a, b=b, rel_tol=rel_tol, abs_tol=abs_tol)


Expand Down

0 comments on commit 665c657

Please sign in to comment.