Skip to content

Commit

Permalink
Merge pull request #147 from neutrinoceros/numpy2.0_repr_compat
Browse files Browse the repository at this point in the history
neutrinoceros authored Aug 25, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 14411cb + dcfbcd1 commit d258c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gpgi/types.py
Original file line number Diff line number Diff line change
@@ -405,8 +405,8 @@ def _validate(self) -> None:
if self.particles.count == 0:
return
for ax, edges in self.grid.cell_edges.items():
domain_left = edges[0]
domain_right = edges[-1]
domain_left = float(edges[0])
domain_right = float(edges[-1])
for x in self.particles.coordinates[ax]:
if x < domain_left:
raise ValueError(f"Got particle at {ax}={x} < {domain_left=}")

0 comments on commit d258c4c

Please sign in to comment.