Skip to content

Commit

Permalink
keeping the name consistent so that final qc attr and var attrs are same
Browse files Browse the repository at this point in the history
  • Loading branch information
Geet-George committed Nov 9, 2023
1 parent 1bec5d5 commit 7e3cff6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/halodrops/sonde.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def weighted_fullness(
)
object.__setattr__(
self,
f"profile_coverage_{variable}",
f"profile_fullness_{variable}",
np.sum(~np.isnan(dataset[variable].values)) / weighed_time_size,
)

Expand All @@ -210,7 +210,7 @@ def qc_check_profile_fullness(self, qc_threshold=0.8):
Parameters
----------
qc_threshold : float, optional
Threshold for profile coverage, by default 0.8
Threshold for profile fullness, by default 0.8
Returns
-------
Expand All @@ -222,7 +222,7 @@ def qc_check_profile_fullness(self, qc_threshold=0.8):
ValueError
If no attributes starting with `profile_coverage_` exist.
"""
attr_prefix = "profile_coverage_"
attr_prefix = "profile_fullness_"
attributes = [attr for attr in dir(self) if attr.startswith(attr_prefix)]
if len(attributes) > 0:
for attribute in attributes:
Expand Down

0 comments on commit 7e3cff6

Please sign in to comment.