| 1 | Future home of wlan_exp_log.log_util documentation. |
| 2 | |
| 3 | == Log Index Filtering == |
| 4 | The |
| 5 | |
| 6 | {{{#!python |
| 7 | import warpnet.wlan_exp_log.log_util as log_util |
| 8 | |
| 9 | #No filtering, just map entry_type_id values (log_index_raw keys) to entry type classes (log_index keys) |
| 10 | log_index = log_util.filter_log_index(log_index_raw) |
| 11 | |
| 12 | #Create index with only RX_OFDM entries |
| 13 | log_index = log_util.filter_log_index(log_index_raw, include_only=['RX_OFDM']) |
| 14 | |
| 15 | #Create index with only RX_OFDM and TX entries |
| 16 | log_index = log_util.filter_log_index(log_index_raw, include_only=['RX_OFDM', 'TX']) |
| 17 | |
| 18 | #Create index for type RX_ALL composed of all RX_OFDM and RX_DSSS entries |
| 19 | log_index = log_util.filter_log_index(log_index_raw, merge={'RX_ALL':['RX_OFDM', 'RX_DSSS']}) |
| 20 | |
| 21 | #Create index for all TX and RX entries, with RX_OFDM and RX_DSSS entries merged into RX_ALL |
| 22 | log_index = log_util.filter_log_index(log_index_raw, include_only=['RX_ALL', 'TX'], merge={'RX_ALL':['RX_OFDM', 'RX_DSSS']}) |
| 23 | }}} |