10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-03 09:56:08 +02:00

Fix bug in ADC25generator

This commit is contained in:
Mickaël Véril 2020-09-23 12:09:53 +02:00
parent 024b284386
commit 38507515e8

View File

@ -25,10 +25,10 @@ args=parser.parse_args()
scriptpath=Path(sys.argv[0]).resolve()
datadir=scriptpath.parents[1]/"static"/"data"
sets=None
if args.sets is not None:
if args.set is not None:
setregex = re.compile(r"^(?P<name>[^\[]+)(?:\[(?P<indexes>(?:[[\d\-;]+))])?$")
sets=dict()
for myset in args.sets:
for myset in args.set:
m=setregex.match(myset)
if m:
name=m.group("name")
@ -121,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,args.sufix)
ADC25File.toFile(outputdir,args.suffix)
except ValueError as ex:
print(ex,file=sys.stderr)