Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
drorlevy committed Dec 3, 2024
1 parent 503acdd commit 2004b81
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, logs_csvs: List[str], hours: int, dest_image_path):
self.plot_critical_events_per_aggregation_time,
self.plot_link_up_down_count_per_aggregation_time,
self.plot_top_n_critical_events_over_time,
self.get_critical_event_bursts
self.get_critical_event_bursts,
}

# Function to split "object_id" into "device" and "description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ def __init__(
self._log_data_sorted[col] = pd.to_numeric(
self._log_data_sorted[col], errors="coerce"
).astype("Int64")
self._funcs_for_analysis = {self.plot_iteration_time_over_time,
self.save_last_iterations_time_stats,
self.save_first_last_iteration_timestamp,
self.save_number_of_switches_and_ports,
self.save_number_of_core_dumps}
self._funcs_for_analysis = {
self.plot_iteration_time_over_time,
self.save_last_iterations_time_stats,
self.save_first_last_iteration_timestamp,
self.save_number_of_switches_and_ports,
self.save_number_of_core_dumps,
}
# Based on the log path, decided if this is primary or secondary
if "ufm_logs" in logs_csvs[0]:
self.telemetry_type = "primary"
Expand Down Expand Up @@ -221,4 +223,4 @@ def save_number_of_core_dumps(self):
["Amount"],
)
)

Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ def print_fabric_size(self):

def get_fabric_size(self):
return self._log_data_sorted

def save_fabric_size(self):
fabric_info = self.get_fabric_size()
self._dataframes_for_pdf.append(("Fabric info", fabric_info))

def full_analysis(self):
super().full_analysis()
self.print_fabric_size()

0 comments on commit 2004b81

Please sign in to comment.