Odd behavior when running siril.cmd spcc for monosensors from pyscript

Hi

I’m trying to add a spcc function (cc), to a pyscript script and I get expected results for OSC sensors, but not for mono sensors.

Attaching the script, output and the ssf script I use to call it.

For testing mono I’m passing the arguments, “KAF8300” “Baader R” “Baader G” “Baader B” and my script says it will run "spcc “-monosensor=KAF8300” “-rfilter=Baader R” “-gfilter=Baader G” “-bfilter=Baader B” and If I paste this into the siril GUI command line it runs as expected. However the output of my script shows "SPCC will use OSC sensor “Sony IMX571” and filter “Svbony SV240”, which are what photometry.oscsensorpref and photometry.oscfilterpref are set to.

For OSC I pass “Sony IMX678” “SvBONY SV260” and I correctly get "
SPCC will use OSC sensor “Sony IMX678” and filter “SvBONY SV260"”

I’m running siril 1.5.0 commit 1736e589a

The output from my script is
script_output.txt (8.8 KB)

GPS_Process.py (20.3 KB)

GPS_Run_pyscripts.ssf (239 Bytes)

Hi,

in your function spcc, the quotes should be properly escaped when you form the sequence string:

			if Type == 'OSC':
				siril.cmd(f'spcc \"-oscsensor={spcc_sensor}\" \"-oscfilter={spcc_oscfilter}\"')
			if Type == 'mono':
				siril.cmd(f'spcc \"-monosensor={spcc_sensor}\" \"-rfilter={spcc_rfilter}\" \"-gfilter={spcc_gfilter}\" \"-bfilter={spcc_bfilter}\"')

Cheers,

C.

Thanks again. Works as expected now.