Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport PR #4724 on branch yt-4.3.x (DEP: fix remaining incompatibilities and declare compatibility with unyt 3.0) #4727

Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dependencies = [
"pillow>=8.0.0",
"tomli-w>=0.4.0",
"tqdm>=3.4.0",
"unyt>=2.9.2,<3.0", # see https://github.com/yt-project/yt/issues/4162
"unyt>=2.9.2",
"tomli>=1.2.3;python_version < '3.11'",
"typing-extensions>=4.4.0;python_version < '3.12'",
]
Expand Down
4 changes: 3 additions & 1 deletion yt/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,9 @@ def compare_dobj_selection(self, dobj):
# NULP should be OK. This is mostly for stuff like Rockstar, where
# the f32->f64 casting happens at different places depending on
# which code path we use.
assert_array_almost_equal_nulp(sel_pos, obj_results, 5)
assert_array_almost_equal_nulp(
np.asarray(sel_pos), np.asarray(obj_results), 5
)

def run_defaults(self):
"""
Expand Down