Skip to content

Commit

Permalink
fix ruff and pylint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Miryam-Schwartz committed Dec 5, 2024
1 parent 370ce73 commit 6369ea1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
import traceback
from typing import Callable, List, Set, Tuple

from numpy import extract


from loganalyze.log_analyzers.base_analyzer import BaseImageCreator
from loganalyze.logs_extraction.directory_extractor import DirectoryExtractor
from loganalyze.log_analyzers.ufm_top_analyzer import UFMTopAnalyzer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_images_created(self):

def get_dataframes_for_pdf(self):
return self._dataframes_for_pdf

def get_lists_for_pdf(self):
return self._lists_for_pdf

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def print_exceptions_per_time_count(self):
"Time",
"Amount of exceptions",
"Exceptions count",
)
)

def save_ufm_versions(self):
self._txt_for_pdf.append(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(
self.save_number_of_core_dumps,
self.save_collectx_versions,
}

# Based on the log path, decided if this is primary or secondary
if "ufm_logs" in logs_csvs[0]:
self.telemetry_type = "primary"
Expand All @@ -59,7 +59,8 @@ def save_collectx_versions(self):
self._log_data_sorted["type"] == "collectx_version"
]["data"].unique()
self._txt_for_pdf.append(
f"collectx versions found in {self.telemetry_type} telemetry log {set(unique_collectx_versions)}"
f"collectx versions found in {self.telemetry_type} telemetry log \
{set(unique_collectx_versions)}"
)

def save_number_of_switches_and_ports(self):
Expand Down

0 comments on commit 6369ea1

Please sign in to comment.