mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
test_l4: Merge identical if clauses
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -312,10 +312,6 @@ python3 ./test_l4.py
|
|||||||
except:
|
except:
|
||||||
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
print('Saving file to local directory')
|
print('Saving file to local directory')
|
||||||
else:
|
|
||||||
pass
|
|
||||||
|
|
||||||
if args.report_file is None:
|
|
||||||
if args.output_format in ['csv', 'json', 'html', 'hdf', 'stata', 'pickle', 'pdf', 'png', 'df', 'parquet',
|
if args.output_format in ['csv', 'json', 'html', 'hdf', 'stata', 'pickle', 'pdf', 'png', 'df', 'parquet',
|
||||||
'xlsx']:
|
'xlsx']:
|
||||||
rpt_file = path + '/data.' + args.output_format
|
rpt_file = path + '/data.' + args.output_format
|
||||||
@@ -324,6 +320,7 @@ python3 ./test_l4.py
|
|||||||
rpt_file = path + '/data.xlsx'
|
rpt_file = path + '/data.xlsx'
|
||||||
else:
|
else:
|
||||||
rpt_file = args.report_file
|
rpt_file = args.report_file
|
||||||
|
|
||||||
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=num_sta - 1, padding_number_=10000,
|
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=num_sta - 1, padding_number_=10000,
|
||||||
radio=args.radio)
|
radio=args.radio)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user