Skip to content

Commit

Permalink
apply threshold on primary telemetry only
Browse files Browse the repository at this point in the history
  • Loading branch information
Miryam-Schwartz committed Dec 4, 2024
1 parent c2d2e10 commit 9afcf7e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def analyze_iteration_time(self, threshold=0.15):
filtered_data = filtered_data[["type", "timestamp", "data"]]
filtered_data["data"] = pd.to_numeric(filtered_data["data"], errors="coerce")

filtered_data = filtered_data[filtered_data["data"] >= threshold]
if self.telemetry_type == "primary":
filtered_data = filtered_data[filtered_data["data"] >= threshold]
filtered_data["timestamp"] = pd.to_datetime(
filtered_data["timestamp"], errors="coerce"
)
Expand Down

0 comments on commit 9afcf7e

Please sign in to comment.