diff --git a/devtools/inspector/_inspector.py b/devtools/inspector/_inspector.py index f480b6ce6f..f09ebe3ee0 100644 --- a/devtools/inspector/_inspector.py +++ b/devtools/inspector/_inspector.py @@ -1174,12 +1174,12 @@ def print_data_tabular( display_or_print_df(filtered_column_df, file) - def save_data_to_csv( + def save_data_to_tsv( self, file: IO[str], ) -> None: """ - Stores the underlying EventBlocks in a csv format with tab separator, to facilitate copy-paste into spreadsheets. + Stores the underlying EventBlocks in tsv format to facilitate copy-paste into spreadsheets. Args: file: Which IO stream to print to. Do not use stdout, as tab separator is not preserved. diff --git a/devtools/inspector/inspector_cli.py b/devtools/inspector/inspector_cli.py index 62f2ec736c..fa1be87766 100644 --- a/devtools/inspector/inspector_cli.py +++ b/devtools/inspector/inspector_cli.py @@ -44,9 +44,9 @@ def main() -> None: help="Provide an optional buffer file path.", ) parser.add_argument( - "--csv_path", + "--tsv_path", required=False, - help="Provide an optional csv file path.", + help="Provide an optional tsv file path.", ) parser.add_argument("--compare_results", action="store_true") @@ -60,8 +60,8 @@ def main() -> None: target_time_scale=TimeScale(args.target_time_scale), ) inspector.print_data_tabular() - if args.csv_path: - inspector.save_data_to_csv(args.csv_path) + if args.tsv_path: + inspector.save_data_to_tsv(args.tsv_path) if args.compare_results: for event_block in inspector.event_blocks: if event_block.name == "Execute":