Skip to content

Commit cc06311

Browse files
committed
compatibility with newest torch-harmonics
1 parent d58366b commit cc06311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

makani/utils/grids.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import torch.amp as amp
2020

21-
from torch_harmonics.quadrature import legendre_gauss_weights, clenshaw_curtiss_weights, _precompute_latitudes
21+
from torch_harmonics.quadrature import legendre_gauss_weights, clenshaw_curtiss_weights, precompute_latitudes
2222

2323
from makani.utils import comm
2424
from physicsnemo.distributed.utils import compute_split_shapes, split_tensor_along_dim
@@ -211,7 +211,7 @@ def __init__(self, img_shape, grid_type, lmax = None, type="sht"):
211211
elif self.type == "fft":
212212

213213
# get the cutoff frequency in m for each latitude
214-
lats, _ = _precompute_latitudes(self.img_shape[0], grid=self.grid_type)
214+
lats, _ = precompute_latitudes(self.img_shape[0], grid=self.grid_type)
215215
# get the grid spacing at the equator
216216
delta_equator = 2 * torch.pi / (self.lmax-1)
217217
mlim = torch.ceil(2 * torch.pi * torch.sin(lats) / delta_equator).reshape(self.img_shape[0], 1)

0 commit comments

Comments
 (0)