Skip to content

Commit 507a99f

Browse files
author
jorgep31415
committed
Update on "[ET] Add tsv_path to inspector_cli"
Differential Revision: [D66379005](https://our.internmc.facebook.com/intern/diff/D66379005/) [ghstack-poisoned]
1 parent fce5c49 commit 507a99f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

devtools/inspector/_inspector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,12 +1174,12 @@ def print_data_tabular(
11741174
display_or_print_df(filtered_column_df, file)
11751175

11761176

1177-
def save_data_to_csv(
1177+
def save_data_to_tsv(
11781178
self,
11791179
file: IO[str],
11801180
) -> None:
11811181
"""
1182-
Stores the underlying EventBlocks in a csv format with tab separator, to facilitate copy-paste into spreadsheets.
1182+
Stores the underlying EventBlocks in tsv format to facilitate copy-paste into spreadsheets.
11831183
11841184
Args:
11851185
file: Which IO stream to print to. Do not use stdout, as tab separator is not preserved.

devtools/inspector/inspector_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def main() -> None:
4444
help="Provide an optional buffer file path.",
4545
)
4646
parser.add_argument(
47-
"--csv_path",
47+
"--tsv_path",
4848
required=False,
49-
help="Provide an optional csv file path.",
49+
help="Provide an optional tsv file path.",
5050
)
5151
parser.add_argument("--compare_results", action="store_true")
5252

@@ -60,8 +60,8 @@ def main() -> None:
6060
target_time_scale=TimeScale(args.target_time_scale),
6161
)
6262
inspector.print_data_tabular()
63-
if args.csv_path:
64-
inspector.save_data_to_csv(args.csv_path)
63+
if args.tsv_path:
64+
inspector.save_data_to_tsv(args.tsv_path)
6565
if args.compare_results:
6666
for event_block in inspector.event_blocks:
6767
if event_block.name == "Execute":

0 commit comments

Comments
 (0)