We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5d1aef commit 396ea8bCopy full SHA for 396ea8b
1 file changed
cloudnetpy/categorize/insects.py
@@ -151,10 +151,7 @@ def _fill_missing_pixels(
151
prob_from_ldr: npt.NDArray,
152
prob_from_others: npt.NDArray,
153
) -> npt.NDArray:
154
- prob_combined = np.copy(prob_from_ldr)
155
- no_ldr = np.where(prob_from_ldr == 0)
156
- prob_combined[no_ldr] = prob_from_others[no_ldr]
157
- return prob_combined
+ return np.maximum(prob_from_ldr, prob_from_others)
158
159
160
def _screen_insects(
0 commit comments