Skip to content

Commit

Permalink
Adjust LDR test
Browse files Browse the repository at this point in the history
  • Loading branch information
tukiains committed Dec 3, 2024
1 parent f979d6d commit 1f8f9bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloudnetpy_qc/quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,9 @@ def run(self):
)
v_count = ma.count(v)
ldr_count = ma.count(ldr)
if v_count > 0 and (ldr_count / v_count * 100) < 0.1:
if v_count > 0 and ldr_count == 0:
self._add_warning("All LDR are masked.")
elif v_count > 0 and (ldr_count / v_count * 100) < 0.1:
self._add_warning("LDR exists in less than 0.1 % of pixels.")


Expand Down

0 comments on commit 1f8f9bb

Please sign in to comment.