Skip to content

Commit

Permalink
encapsulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Miryam-Schwartz committed Dec 1, 2024
1 parent caf3629 commit 1df655b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def create_analyzer(

all_images_outputs_and_title, dataframes_for_pdf, lists_to_add = (
ufm_top_analyzer.full_analysis_all_analyzers()
)
)

png_images = []
images_and_title_to_present = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,14 @@ def fix_lines_with_no_timestamp(csvs):
temp_file = csv_file + ".temp"
BaseAnalyzer._remove_empty_lines_from_csv(csv_file)
fixed_lines = 0
with open(
csv_file, "r", newline="", encoding=DataConstants.UTF8ENCODING
) as infile, open(
temp_file, "w", newline="", encoding=DataConstants.UTF8ENCODING
) as outfile:
with (
open(
csv_file, "r", newline="", encoding=DataConstants.UTF8ENCODING
) as infile,
open(
temp_file, "w", newline="", encoding=DataConstants.UTF8ENCODING
) as outfile,
):
reader = csv.reader(infile)
writer = csv.writer(outfile)
current_line = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ def full_analysis(self):
lists_to_add.append(
(
[self.get_number_of_core_dumps()],
f"{self.telemetry_type} "
"number of core dumps found in the logs",
f"{self.telemetry_type} " "number of core dumps found in the logs",
["Amount"],
)
)
Expand Down

0 comments on commit 1df655b

Please sign in to comment.