mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-26 06:14:38 +01:00
Fix bug in ADC25generator
This commit is contained in:
parent
024b284386
commit
38507515e8
@ -25,10 +25,10 @@ args=parser.parse_args()
|
|||||||
scriptpath=Path(sys.argv[0]).resolve()
|
scriptpath=Path(sys.argv[0]).resolve()
|
||||||
datadir=scriptpath.parents[1]/"static"/"data"
|
datadir=scriptpath.parents[1]/"static"/"data"
|
||||||
sets=None
|
sets=None
|
||||||
if args.sets 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.sets:
|
for myset in args.set:
|
||||||
m=setregex.match(myset)
|
m=setregex.match(myset)
|
||||||
if m:
|
if m:
|
||||||
name=m.group("name")
|
name=m.group("name")
|
||||||
@ -121,7 +121,7 @@ for t in DataType:
|
|||||||
Type=getValue(exADC2,exADC3,"type")
|
Type=getValue(exADC2,exADC3,"type")
|
||||||
exADC25=excitationValue(deepcopy(exADC2.initial),deepcopy(exADC2.final),value,Type,T1,isUnsafe,f)
|
exADC25=excitationValue(deepcopy(exADC2.initial),deepcopy(exADC2.final),value,Type,T1,isUnsafe,f)
|
||||||
ADC25File.excitations.append(exADC25)
|
ADC25File.excitations.append(exADC25)
|
||||||
ADC25File.toFile(outputdir,args.sufix)
|
ADC25File.toFile(outputdir,args.suffix)
|
||||||
|
|
||||||
except ValueError as ex:
|
except ValueError as ex:
|
||||||
print(ex,file=sys.stderr)
|
print(ex,file=sys.stderr)
|
Loading…
Reference in New Issue
Block a user