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

Do Not Merge: Checking enzo answer fail with np >= 2 #4927

Closed
Closed
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
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ dependencies = [
"ipywidgets>=8.0.0",
"matplotlib>=3.5",
"more-itertools>=8.4",
"numpy>=1.19.3, <3", # keep minimal requirement in sync with NPY_TARGET_VERSION
"numpy>=2.0.0rc1, <3 ; python_version >= '3.10'", # keep minimal requirement in sync with NPY_TARGET_VERSION
"numpy; python_version == '3.9'", # keep minimal requirement in sync with NPY_TARGET_VERSION
"packaging>=20.9",
"pillow>=8.0.0",
"tomli-w>=0.4.0",
Expand Down
1 change: 1 addition & 0 deletions tests/ci_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ elif [[ ${dependencies} == "cartopy" ]]; then
python -m pip install scipy
python -m pip install -e ".[test]"
elif [[ ${dependencies} == "full" ]]; then
#python -m pip install astropy --pre --extra-index-url=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
# test with all optional runtime dependencies
python -m pip install -e ".[test,full]"
else
Expand Down
1 change: 1 addition & 0 deletions yt/fields/vector_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def _relative_vector(field, data):
iax = axis_order.index(ax)
d = data[field_components[iax]]
bulk = get_bulk(data, basename, d.unit_quantity)
bulk = bulk.astype(d.dtype)
return d - bulk[iax]

return _relative_vector
Expand Down
Loading