mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 12:18:00 +00:00
csv_convert.py : defaulted to outfile
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -34,9 +34,6 @@ class CSVParcer():
|
|||||||
|
|
||||||
#print('{}'.format(self.csv_infile))
|
#print('{}'.format(self.csv_infile))
|
||||||
#print("dataframe {}".format(dataframe))
|
#print("dataframe {}".format(dataframe))
|
||||||
if self.csv_outfile == None:
|
|
||||||
csv_summary = self.csv_infile.replace('candela','comcast')
|
|
||||||
else:
|
|
||||||
csv_summary = self.csv_outfile
|
csv_summary = self.csv_outfile
|
||||||
csv_summary = os.path.splitext(csv_summary)[0] + '.csv'
|
csv_summary = os.path.splitext(csv_summary)[0] + '.csv'
|
||||||
|
|
||||||
@@ -64,7 +61,7 @@ csv_convert.py:
|
|||||||
|
|
||||||
# for testing parser.add_argument('-i','--infile', help="input file of csv data", default='text-csv-0-candela.csv')
|
# for testing parser.add_argument('-i','--infile', help="input file of csv data", default='text-csv-0-candela.csv')
|
||||||
parser.add_argument('-i','--infile', help="input file of csv data", required=True)
|
parser.add_argument('-i','--infile', help="input file of csv data", required=True)
|
||||||
parser.add_argument('-o','--outfile', help="output file of csv, xlsx data", default=None)
|
parser.add_argument('-o','--outfile', help="output file of csv, xlsx data , default: outfile.xlsx outfile.csv", default='outfile')
|
||||||
|
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|||||||
Reference in New Issue
Block a user