Skip to content

Commit 3c494bd

Browse files
formatted
1 parent c001ab1 commit 3c494bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

xesmf/backend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
import ESMF
2626

2727
import numpy as np
28-
import numpy.typing as npt
2928
import numpy.lib.recfunctions as nprec
29+
import numpy.typing as npt
3030

3131

3232
def warn_f_contiguous(a: npt.NDArray[np.floating[Any]]) -> None:

xesmf/util.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -373,13 +373,13 @@ def _generate_bipolar_cap_mesh(
373373
if Nj_ncap % 2 != 0 and ensure_nj_even:
374374
print(' Supergrid has an odd number of area cells!')
375375
if ensure_nj_even:
376-
print(' The number of j's is not even. Fixing this by cutting one row.')
376+
print(' The number of j\'s is not even. Fixing this by cutting one row.')
377377
Nj_ncap = Nj_ncap - 1
378378

379379
lon_g = lon_bp + np.arange(Ni + 1) * 360.0 / float(Ni)
380-
lamg: float = np.tile(lon_g, (Nj_ncap + 1, 1))
380+
lamg = np.tile(lon_g, (Nj_ncap + 1, 1))
381381
latg0_cap = lat0_bp + np.arange(Nj_ncap + 1) * (90 - lat0_bp) / float(Nj_ncap)
382-
phig: float = np.tile(latg0_cap.reshape((Nj_ncap + 1, 1)), (1, Ni + 1))
382+
phig = np.tile(latg0_cap.reshape((Nj_ncap + 1, 1)), (1, Ni + 1))
383383
rp = np.tan(0.5 * (90 - lat0_bp) * PI_180)
384384
lams, phis, h_i_inv, h_j_inv = _bipolar_projection(lamg, phig, lon_bp, rp)
385385
h_i_inv = h_i_inv[:, :-1] * 2 * np.pi / float(Ni)

0 commit comments

Comments
 (0)