From 2b2b319adb020ec7ac1c080dfe2ad5ba23688641 Mon Sep 17 00:00:00 2001 From: Randy LeVeque Date: Fri, 18 Jul 2025 11:54:08 -0700 Subject: [PATCH 1/2] change np.infty to np.inf --- src/python/geoclaw/dtopotools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/geoclaw/dtopotools.py b/src/python/geoclaw/dtopotools.py index 37abc634f..44c36fbbf 100644 --- a/src/python/geoclaw/dtopotools.py +++ b/src/python/geoclaw/dtopotools.py @@ -1069,7 +1069,7 @@ def containing_rect(self): """ - extent = [numpy.infty, -numpy.infty, numpy.infty, -numpy.infty] + extent = [numpy.inf, -numpy.inf, numpy.inf, -numpy.inf] for subfault in self.subfaults: for corner in subfault.corners: extent[0] = min(corner[0], extent[0]) From d353b79dbcc024c93daa4fe4c89104ae07f37a6e Mon Sep 17 00:00:00 2001 From: Randy LeVeque Date: Sun, 17 Aug 2025 17:24:43 -0700 Subject: [PATCH 2/2] fix infty to inf in topotools.py --- src/python/geoclaw/topotools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/geoclaw/topotools.py b/src/python/geoclaw/topotools.py index 1c9690d8b..0cda2e0fa 100644 --- a/src/python/geoclaw/topotools.py +++ b/src/python/geoclaw/topotools.py @@ -386,8 +386,8 @@ def delta(self): if self.unstructured: # Calculate the smallest spacing between grid points - dx = numpy.infty - dy = numpy.infty + dx = numpy.inf + dy = numpy.inf num_comparisons = self.x.shape[0] - 1 for i in range(self.x.shape[0]): for j in range(num_comparisons):