GraxPert-AI.py Python script

When processing a sequence the output sequence cannot be used

12:33:12: The FITS image contains more than 3 channels (1). Opening only the three first.
12:33:12: Fitsio error reading data, file: C:\Users\paula\Desktop\ASI585_images\Askar_NGC6888\denoised_r_align_00002.fit.
12:33:12: FITS error: Attempt to read past end of array:
12:33:12: FITS error: Image has 33177600 elements;
12:33:12: FITS error: Tried to read 99532800 elements starting at element 1.
12:33:12: Opening C:\Users\paula\Desktop\ASI585_images\Askar_NGC6888\denoised_r_align_00002.fit failed.

I tried processing each file in my PySiril program

#preprocess lights
app.Execute(“cd lights”)

    with os.scandir(path+"/"+filter_number+"/lights") as dir:
        for entry in dir:
            app.Execute("load '" + entry.name + "'")
            app.Execute("pyscript GraxPert-AI.py -denoise")
            app.Execute("save '" + entry.name + "'")

But I got

load ‘Light_NGC 6888_300.0s_Bin1_Ha_gain100_20250712-224846_0001.fit’
: log: Running command: load
: log: Reading FITS: file Light_NGC 6888_300.0s_Bin1_Ha_gain100_20250712-224846_0001.fit, 1 layer(s), 3840x2160 pixels, 16 bits
[status: success]
pyscript GraxPert-AI.py -denoise
: log: Running command: pyscript
INFO : ThreadReader is aborted
INFO : ThreadSiril is stoppedINFO : ThreadReader is stopped

[abort]
ERROR : *** cpipe::write() (232, ‘WriteFile’, ‘The pipe is being closed.’)
ERROR : Abort pipeout.write()
ERROR : *** Execute() :

INFO : Stopping PipeWriter …
ERROR : *** cpipe::write() (232, ‘WriteFile’, ‘The pipe is being closed.’)
ERROR : *** cpipe::write() (232, ‘WriteFile’, ‘The pipe is being closed.’)
INFO : PipeWriter is stopped

What beta are you using? I have a feeling this was a bug in pyscript that has now been fixed. Please test using beta3 and report back if you still see the problem.