mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 12:18:00 +00:00
commented out broken code, added code so output_format and report_file exten. is passed in, exten is changed to csv to create file, then csv is changed to correct output format
This commit is contained in:
@@ -268,21 +268,17 @@ python3 ./test_ipv4_variable_time.py
|
||||
except:
|
||||
curr_dir_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
path = os.path.join(curr_dir_path, new_file_path)
|
||||
os.mkdir(path)
|
||||
print('Saving file to ' + path)
|
||||
|
||||
os.mkdir(path)
|
||||
|
||||
if args.output_format in ['csv','json','html','hdf','stata','pickle','pdf','png','df','parquet','xlsx']:
|
||||
#always save to csv first
|
||||
report_f= str(path) + '/data.csv'
|
||||
#report_f= str(path) + '/data.' + args.output_format
|
||||
print(report_f)
|
||||
report_f= str(path) + '/data.' + args.output_format
|
||||
output=args.output_format
|
||||
else:
|
||||
print('Defaulting to csv data file output type, naming it data.csv.')
|
||||
report_f= str(path)+'/data.csv'
|
||||
print(report_f)
|
||||
output='csv'
|
||||
if self.debug:
|
||||
print("Saving report data in ... " + report_f)
|
||||
else:
|
||||
report_f=args.report_file
|
||||
if args.output_format is None:
|
||||
|
||||
Reference in New Issue
Block a user