Please help with pysiril-0.0.12

Python addition two more “3” to the command line???

cmd.set16bits()
cmd.cd(workdir)
cmd.convert(pp_prefix+StackName, out=args.procdir)
cmd.cd(args.procdir)
cmd.setref(pp_prefix+StackName, BaseImageIdx)
cmd.register(pp_prefix+StackName, prefix=r_prefix)
print(“rej 4 4 -nonorm -filter-wfwhm={} -out={}".format(args.wFWHM,os.path.join(dir,StackFile))) cmd.stack(r_prefix+pp_prefix+StackName, "rej 4 4 -nonorm -filter-wfwhm={} -out={}”.format(args.wFWHM,os.path.join(dir,StackFile)))
cmd.cd(startdir)

print() command added for debug

: log: Registration finished.
: log: 6 images processed.
: log: Total: 0 failed, 6 registered.

[status: success]
rej 4 4 -nonorm -filter-wfwhm=80% -out=c:/stacked\M101_14-03-13_N54-20-56_ATR3CMOS26000KMA_FLEN910_ANGL5\r_pp_M101_ATR3CMOS26000KMA_FLEN910_B_G100_OFS250_1x1_120s_stacked_80pct.fits
stack r_pp_M101_ATR3CMOS26000KMA_FLEN910_B_G100_OFS250_1x1_120s rej 4 4 -nonorm -filter-wfwhm=80% -out=c:/stacked\M101_14-03-13_N54-20-56_ATR3CMOS26000KMA_FLEN910_ANGL5\r_pp_M101_ATR3CMOS26000KMA_FLEN910_B_G100_OFS250_1x1_120s_stacked_80pct.fits 3 3
INFO : status: error stack r_pp_M101_ATR3CMOS26000KMA_FLEN910_B_G100_OFS250_1x1_120s rej 4 4 -nonorm -filter-wfwhm=80% -out=c:/stacked\M101_14-03-13_N54-20-56_ATR3CMOS26000KMA_FLEN910_ANGL5\r_pp_M101_ATR3CMOS26000KMA_FLEN910_B_G100_OFS250_1x1_120s_stacked_80pct.fits 3 3
: log: Running command: stack
: log: Unexpected argument to stacking `3’, aborting.
: log: Command execution failed.

If I copy the same command without two additional “3” into Siril CMD it works as expected

Could you please help?

I was able to make it works except wfwhm

cmd.stack(r_prefix+pp_prefix+StackName, type=“rej”, sigma_low=3, sigma_high=3, norm=“no”, out=os.path.join(dir,StackFile), filter-wfwhm=60)

C:\Users\vrogozhin>python c:\N.I.N.A\stack.py -c c:\N.I.N.A\stack.json -r 5 -d c:\preprocessed\M101_14-03-13_N54-20-56_ATR3CMOS26000KMA_FLEN910_ANGL5\M101_B_G100_OFS250_1x1_120s -w 60
File “c:\N.I.N.A\stack.py”, line 280
cmd.stack(r_prefix+pp_prefix+StackName, type=“rej”, sigma_low=3, sigma_high=3, norm=“no”, out=os.path.join(dir,StackFile), filter-wfwhm=60)
^^^^^^^^^^^^^
SyntaxError: expression cannot contain assignment, perhaps you meant “==”?

Finale got it works with underscore instead of “-”:

cmd.stack(r_prefix+pp_prefix+StackName, type=“rej”, sigma_low=3, sigma_high=3, norm=“no”, out=os.path.join(dir,StackFile), filter_wfwhm="{}%".format(args.wFWHM))