Skip to content

Commit 2b46ba9

Browse files
committed
Remove casts to float32
#1816 (comment)
1 parent 3e4c6d0 commit 2b46ba9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

parcels/_index_search.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525

2626
def search_indices_vertical_z(grid: Grid, gridindexingtype: GridIndexingType, z: float):
27-
z = np.float32(z)
2827
if grid.depth[-1] > grid.depth[0]:
2928
if z < grid.depth[0]:
3029
# Since MOM5 is indexed at cell bottom, allow z at depth[0] - dz where dz = (depth[1] - depth[0])
@@ -99,7 +98,6 @@ def search_indices_vertical_s(
9998
+ xsi * eta * grid.depth[:, yi + 1, xi + 1]
10099
+ (1 - xsi) * eta * grid.depth[:, yi + 1, xi]
101100
)
102-
z = np.float32(z) # type: ignore # TODO: remove type ignore once we migrate to float64
103101

104102
if depth_vector[-1] > depth_vector[0]:
105103
depth_indices = depth_vector <= z

0 commit comments

Comments
 (0)