Skip to content

Commit 5ffef2d

Browse files
committed
dont need to copy inputs in np.meshgrid. set copy=False in get_lat_lon
1 parent 524a742 commit 5ffef2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • sup3r/postprocessing/writers

sup3r/postprocessing/writers/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,9 @@ def get_lat_lon(cls, low_res_lat_lon, shape):
562562
new_x = np.arange(0, 10, 10 / hr_x) + 5 / hr_x
563563

564564
logger.debug('Running meshgrid.')
565-
X, Y = np.meshgrid(x, y)
565+
X, Y = np.meshgrid(x, y, copy=False)
566566
old = np.array([Y.flatten(), X.flatten()]).T
567-
X, Y = np.meshgrid(new_x, new_y)
567+
X, Y = np.meshgrid(new_x, new_y, copy=False)
568568
new = np.array([Y.flatten(), X.flatten()]).T
569569

570570
logger.debug('Running griddata.')

0 commit comments

Comments
 (0)