Skip to content

Commit

Permalink
chore: Remove commented out code for exporting files in handle_record…
Browse files Browse the repository at this point in the history
…er.py
  • Loading branch information
jay-tau committed Jun 18, 2024
1 parent a5c0d13 commit 6dd5f0b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions drishti/handlers/handle_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,30 +579,9 @@ def process_helper(file_map, df_intervals, df_posix_records, fid=None):
display_thresholds(console)
display_footer(console, insights_start_time, insights_end_time)

# if args.split_files:
# filename = '{}.{}.html'.format(args.log_path, fid)
# else:
# filename = '{}.html'.format(args.log_path)

# export_html(console, filename)

# if args.split_files:
# filename = '{}.{}.svg'.format(args.log_path, fid)
# else:
# filename = '{}.svg'.format(args.log_path)

# export_svg(console, filename)

# if args.split_files:
# filename = '{}.{}.summary.csv'.format(args.log_path, fid)
# else:
# filename = '{}-summary.csv'.format(args.log_path)
# export_csv(filename)

# Export to HTML, SVG, and CSV
input_filename = os.path.basename(os.path.dirname(args.log_path))
input_filename = f"{input_filename}.{fid}" if args.split_files else input_filename # Append fid if split_files is enabled

out_dir = args.export_dir if args.export_dir != "" else os.getcwd()

export_html(console, out_dir, input_filename)
Expand Down

0 comments on commit 6dd5f0b

Please sign in to comment.