Skip to content

Commit

Permalink
fixed error upon trying calibration of EK80 .nc converted file (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
praneethratna authored Nov 16, 2023
1 parent 4e8864e commit 3335cae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion echopype/calibrate/cal_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,10 @@ def get_cal_params_EK(
# Private function to get fs
def _get_fs():
# If receiver_sampling_frequency recorded, use it
if "receiver_sampling_frequency" in vend:
if (
"receiver_sampling_frequency" in vend
and not np.isclose(vend["receiver_sampling_frequency"], 0).all()
):
return vend["receiver_sampling_frequency"]
else:
# If receiver_sampling_frequency not recorded, use default value
Expand Down

0 comments on commit 3335cae

Please sign in to comment.