10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-22 10:47:42 +02:00

Add the posibility to add suffix for ADC25generator

This commit is contained in:
Mickaël Véril 2020-09-21 09:42:16 +02:00
parent dbd8facf06
commit e383ee97e2

View File

@ -20,6 +20,7 @@ class SetsAction(argparse.Action):
parser = argparse.ArgumentParser()
parser.add_argument('--debug', action='store_true', help='Debug mode')
parser.add_argument("--set",nargs="*",type=str)
parser.add_argument("--suffix",type=str)
args=parser.parse_args()
scriptpath=Path(sys.argv[0]).resolve()
datadir=scriptpath.parents[1]/"static"/"data"
@ -120,7 +121,7 @@ for t in DataType:
Type=getValue(exADC2,exADC3,"type")
exADC25=excitationValue(deepcopy(exADC2.initial),deepcopy(exADC2.final),value,Type,T1,isUnsafe,f)
ADC25File.excitations.append(exADC25)
ADC25File.toFile(outputdir)
ADC25File.toFile(outputdir,args.sufix)
except ValueError as ex:
print(ex,file=sys.stderr)