Skip to content

Commit

Permalink
[scr] Only print blank line as separator if reasonable
Browse files Browse the repository at this point in the history
  • Loading branch information
chleh committed Aug 6, 2024
1 parent 20b7299 commit 981ea88
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Applications/Python/ogs/dev/ogs_log_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,13 @@ def aggregate_log_files(log_files_dirs):
def run(log_files_dirs, xml_out_dir, verbose):
map_prj_file_to_agg_vtkdiff_stats = aggregate_log_files(log_files_dirs)

for prj_file, df_vtkdiff_max in map_prj_file_to_agg_vtkdiff_stats.items():
for i, (prj_file, df_vtkdiff_max) in enumerate(
map_prj_file_to_agg_vtkdiff_stats.items()
):
if verbose:
print(f"\n###### {prj_file}\n")
if i != 0:
print() # blank line as a separator
print(f"###### {prj_file}\n")

df_vtkdiff_max = round_up_2_digits(df_vtkdiff_max) # noqa: PLW2901

Expand Down

0 comments on commit 981ea88

Please sign in to comment.