File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1192,17 +1192,21 @@ def print_data_tabular(
1192
1192
def save_data_to_tsv (
1193
1193
self ,
1194
1194
file : IO [str ],
1195
+ include_units : bool = True ,
1196
+ include_delegate_debug_data : bool = False ,
1195
1197
) -> None :
1196
1198
"""
1197
1199
Stores the underlying EventBlocks in tsv format to facilitate copy-paste into spreadsheets.
1198
1200
1199
1201
Args:
1200
1202
file: Which IO stream to print to. Do not use stdout, as tab separator is not preserved.
1203
+ include_units: Whether headers should include units (default true)
1204
+ include_delegate_debug_data: Whether to include delegate debug metadata (default false)
1201
1205
1202
1206
Returns:
1203
1207
None
1204
1208
"""
1205
- df = self ._prepare_dataframe ()
1209
+ df = self ._prepare_dataframe (include_units , include_delegate_debug_data )
1206
1210
df .to_csv (file , sep = "\t " )
1207
1211
1208
1212
# TODO: write unit test
You can’t perform that action at this time.
0 commit comments