mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2025-01-12 05:58:23 +01:00
Fix errors for ADC25generator
This commit is contained in:
parent
f2c01a1b85
commit
6c37680315
@ -26,7 +26,7 @@ scriptpath=Path(sys.argv[0]).resolve()
|
|||||||
datadir=scriptpath.parents[1]/"static"/"data"
|
datadir=scriptpath.parents[1]/"static"/"data"
|
||||||
sets=None
|
sets=None
|
||||||
if args.set is not None:
|
if args.set is not None:
|
||||||
setregex = re.compile(r"^(?P<name>[^\[]+)(?:\[(?P<indexes>(?:[[\d\-;]+))])?$")
|
setregex = re.compile(r"^(?P<name>[^\[]+)(?:\[(?P<indexes>[\d\-;]+)\])?$")
|
||||||
sets=dict()
|
sets=dict()
|
||||||
for myset in args.set:
|
for myset in args.set:
|
||||||
m=setregex.match(myset)
|
m=setregex.match(myset)
|
||||||
@ -38,10 +38,10 @@ if args.set is not None:
|
|||||||
for myindexes in indexes.split(";"):
|
for myindexes in indexes.split(";"):
|
||||||
ir=myindexes.split("-",2)
|
ir=myindexes.split("-",2)
|
||||||
if len(ir)==2:
|
if len(ir)==2:
|
||||||
for i in range(int(ir[0]),int(ir[1])):
|
for i in range(int(ir[0]),int(ir[1])+1):
|
||||||
s.add(i)
|
s.add(i)
|
||||||
else:
|
else:
|
||||||
s.add(int(ir))
|
s.add(int(ir[0]))
|
||||||
sets[name]=s
|
sets[name]=s
|
||||||
outputdir=datadir/"test" if args.debug else datadir
|
outputdir=datadir/"test" if args.debug else datadir
|
||||||
ADC23re=re.compile(r"ADC\(([23])\)")
|
ADC23re=re.compile(r"ADC\(([23])\)")
|
||||||
|
Loading…
Reference in New Issue
Block a user