Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ENH: Changeassert_allclose to acceptnumpy.timedelta64 asatol#30386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
riku-sakamoto wants to merge2 commits intonumpy:main
base:main
Choose a base branch
Loading
fromriku-sakamoto:fix_atol_format_in_assert_allclose
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
TYP: improve typehint to allow np.timedelta64 as atol
  • Loading branch information
@riku-sakamoto
riku-sakamoto committedDec 11, 2025
commitae79c9f7509c3b808403f7fc284a2d9b82f5ebc5
2 changes: 1 addition & 1 deletionnumpy/testing/_private/utils.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1687,7 +1687,7 @@ def assert_allclose(actual, desired, rtol=1e-7, atol=0, equal_nan=True,
Array desired.
rtol : float, optional
Relative tolerance.
atol : float, optional
atol : float | np.timedelta64, optional
Absolute tolerance.
equal_nan : bool, optional.
If True, NaNs will compare equal.
Expand Down
2 changes: 1 addition & 1 deletionnumpy/testing/_private/utils.pyi
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -319,7 +319,7 @@ def assert_allclose(
actual: _ArrayLikeTD64_co,
desired: _ArrayLikeTD64_co,
rtol: float = 1e-7,
atol: float = 0,
atol: float| np.timedelta64= 0,
equal_nan: bool = True,
err_msg: object = "",
verbose: bool = True,
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp