@@ -30,7 +30,7 @@ def search_indices_vertical_z(grid: Grid, gridindexingtype: GridIndexingType, z:
3030 if gridindexingtype == "mom5" and z > 2 * grid .depth [0 ] - grid .depth [1 ]:
3131 return (- 1 , z / grid .depth [0 ])
3232 else :
33- _raise_field_out_of_bound_surface_error (z , 0 , 0 )
33+ _raise_field_out_of_bound_surface_error (z , None , None )
3434 elif z > grid .depth [- 1 ]:
3535 # In case of CROCO, allow particles in last (uppermost) layer using depth[-1]
3636 if gridindexingtype in ["croco" ] and z < 0 :
@@ -43,7 +43,7 @@ def search_indices_vertical_z(grid: Grid, gridindexingtype: GridIndexingType, z:
4343 zi = depth_indices .argmin () - 1 if z >= grid .depth [0 ] else 0
4444 else :
4545 if z > grid .depth [0 ]:
46- _raise_field_out_of_bound_surface_error (z , 0 , 0 )
46+ _raise_field_out_of_bound_surface_error (z , None , None )
4747 elif z < grid .depth [- 1 ]:
4848 _raise_field_out_of_bound_error (z , 0 , 0 )
4949 depth_indices = grid .depth >= z
@@ -106,7 +106,7 @@ def search_indices_vertical_s(
106106 else :
107107 zi = depth_indices .argmin () - 1 if z >= depth_vector [0 ] else 0
108108 if z < depth_vector [zi ]:
109- _raise_field_out_of_bound_surface_error (z , 0 , 0 )
109+ _raise_field_out_of_bound_surface_error (z , None , None )
110110 elif z > depth_vector [zi + 1 ]:
111111 _raise_field_out_of_bound_error (z , y , x )
112112 else :
@@ -116,7 +116,7 @@ def search_indices_vertical_s(
116116 else :
117117 zi = depth_indices .argmin () - 1 if z <= depth_vector [0 ] else 0
118118 if z > depth_vector [zi ]:
119- _raise_field_out_of_bound_surface_error (z , 0 , 0 )
119+ _raise_field_out_of_bound_surface_error (z , None , None )
120120 elif z < depth_vector [zi + 1 ]:
121121 _raise_field_out_of_bound_error (z , y , x )
122122 zeta = (z - depth_vector [zi ]) / (depth_vector [zi + 1 ] - depth_vector [zi ])
0 commit comments