Skip to content
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 @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "gpgi"
version = "0.14.0"
version = "1.0.0dev0"
description = "A Generic Particle+Grid Interface"
authors = [
{ name = "C.M.T. Robert" },
Expand Down
2 changes: 1 addition & 1 deletion src/gpgi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from .types import Dataset, FieldMap, Geometry, Grid, ParticleSet

__version__ = "0.14.0"
__version__ = "1.0.0dev0"


def load(
Expand Down
9 changes: 0 additions & 9 deletions src/gpgi/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,15 +672,6 @@ def deposit(

Boundary recipes are applied the weight field (if any) first.
"""
if method in ("pic", "particle_in_cell"):
warnings.warn(
f"{method=!r} is a deprecated alias for method='ngp', "
"please use 'ngp' (or 'nearest_grid_point') directly",
DeprecationWarning,
stacklevel=2,
)
method = "ngp"

if callable(method):
from inspect import signature

Expand Down
31 changes: 0 additions & 31 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,37 +320,6 @@ def test_identical_dtype_requirement():
)


def test_depr_pic():
ds = gpgi.load(
geometry="cartesian",
grid={
"cell_edges": {
"x": np.array([0, 1.0]),
"y": np.array([0, 1.0]),
"z": np.array([0, 1.0]),
}
},
particles={
"coordinates": {
"x": np.array([0.0, 1.0]),
"y": np.array([0.0, 1.0]),
"z": np.array([0.0, 1.0]),
},
"fields": {
"mass": np.ones(2),
},
},
)
with pytest.warns(
DeprecationWarning,
match=(
r"method='pic' is a deprecated alias for method='ngp', "
r"please use 'ngp' \(or 'nearest_grid_point'\) directly"
),
):
ds.deposit("mass", method="pic")


def test_float32_limit_validation():
gpgi.load(
geometry="polar",
Expand Down