Skip to content

Commit 50e29c5

Browse files
ctuguinayleewujung
andauthored
Update echopype/consolidate/ek_depth_utils.py
Co-authored-by: Wu-Jung Lee <leewujung@gmail.com>
1 parent 96c2ea3 commit 50e29c5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

echopype/consolidate/ek_depth_utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,4 @@ def ek_use_beam_angles(beam_ds: xr.Dataset) -> xr.DataArray:
109109

110110
# For channels with near-zero norm, we return NaN. Otherwise, we return the normalized
111111
# z component.
112-
normed_z = xr.where(norm < tolerance, np.nan, beam_direction_z / norm)
113-
echo_range_scaling = normed_z
114-
return echo_range_scaling
112+
return xr.where(norm < tolerance, np.nan, beam_direction_z / norm)

0 commit comments

Comments
 (0)