cloudnetpy-qc 1.29.0__py3-none-any.whl → 1.30.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
cloudnetpy_qc/coverage.py CHANGED
@@ -43,7 +43,7 @@ def data_coverage(
43
43
  bins = max(1, duration // expected_res)
44
44
  hist, _ = np.histogram(time, bins=bins, range=(0, duration / time_unit))
45
45
  coverage = np.count_nonzero(hist > 0) / len(hist)
46
- actual_res = np.median(np.diff(time)) * time_unit
46
+ actual_res = float(np.median(np.diff(time))) * time_unit
47
47
  return coverage, expected_res, actual_res
48
48
 
49
49