Skip to content

Commit

Permalink
remove if
Browse files Browse the repository at this point in the history
  • Loading branch information
hgloeckner committed Jan 22, 2025
1 parent d496cf0 commit 4ae8f82
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pydropsonde/helper/quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ def profile_extent(
max_alt = np.nan

max_diff = drop_alt - max_alt
if max_diff > drop_alt * float(extend_ratio):
self.qc_flags[f"{variable}_profile_extent"] = False
else:
self.qc_flags[f"{variable}_profile_extent"] = True
self.qc_details[f"{variable}_profile_extent_miss_ratio"] = 1 - (
self.qc_flags[f"{variable}_profile_extent"] = max_diff < drop_alt * float(
extend_ratio
)
self.qc_details[f"{variable}_profile_extent_miss_ratio"] = (
max_diff / drop_alt
)

Expand Down

0 comments on commit 4ae8f82

Please sign in to comment.