Sirilic - error setting up directories

Hi @M27trogonondepomme

sirilic V1.13.3, Win10. It fails right after creating the first directory (Darks)

Here’s the trace.log:
Traceback (most recent call last):
File “sirilic\lib\tabprocessus.py”, line 115, in OnPaint
File “sirilic\lib\tabprocessus.py”, line 121, in DoDrawing
File “sirilic\lib\tabprocessus.py”, line 463, in drawing
File “sirilic\lib\database.py”, line 293, in IsLib
File “sirilic\lib\tools.py”, line 298, in GetImageNumber
File “sirilic\lib\tools.py”, line 268, in GetHDU
UnboundLocalError: local variable ‘nb_pix’ referenced before assignment
Exception in thread Thread-1:
Traceback (most recent call last):
File “threading.py”, line 917, in _bootstrap_inner
File “sirilic\lib\actioncopy.py”, line 67, in run
File “sirilic\lib\database.py”, line 293, in IsLib
File “sirilic\lib\tools.py”, line 298, in GetImageNumber
File “sirilic\lib\tools.py”, line 268, in GetHDU
UnboundLocalError: local variable ‘nb_pix’ referenced before assignment

Traceback (most recent call last):
File “sirilic\lib\tabprocessus.py”, line 115, in OnPaint
File “sirilic\lib\tabprocessus.py”, line 121, in DoDrawing
File “sirilic\lib\tabprocessus.py”, line 463, in drawing
File “sirilic\lib\database.py”, line 293, in IsLib
File “sirilic\lib\tools.py”, line 298, in GetImageNumber
File “sirilic\lib\tools.py”, line 268, in GetHDU
UnboundLocalError: local variable ‘nb_pix’ referenced before assignment

Sirilic fails when reading the header of a FITS file
Could you send me a dark image (FITS) so that I can understand exactly what the problem is.

I am trying to start with RAW .CR2 files. That worked with previous versions. Let me know if the solution is to convert everything to FITS first.

(I have a proper camera on its way, so I won’t be dealing with many Canon files going forward)

If your Dark images are only in CR2 format and it happens in step 1, then I don’t understand why it crashes. I don’t understand something.

In the directory, wouldn’t there be FITS files from a previous test?

Looking at the log, I have the impression that the problem is on the FLAT images.

could you test with this version of sirilic ? (I added messages for debugging)
[xxx sirilic-V1.13.4x_password_sirilic_.zip xxxxx]

It looks like that version is going to work. (Thanks!)

For the previous tests I was always starting with a new project name, so no existing files in the directories. But - I was using a master-flat.fit that had been generated by the previous version of siril. Once the current project finishes I will go back to sirilic 1.13.3 and use the original flat and dark-flat images to test that.

Could you send me the master flat ?

the header of your master-flat file is bad:
NAXIS=0 ( your image has no dimension ) ???

image

Interesting. I didn’t do anything to it after siril made it as directed by sirilic - but the solution of making a new one is simple enough.

Thanks for looking at it.

I wonder how siril has created that!

I analysed the image more precisely: after the first header, there is the header of the image.
it is a compressed image. In Sirilic, the header analysis function must not handle compressed fits well.

XTENSION= ‘BINTABLE’ / binary table extension
BITPIX = 8 / 8-bit bytes
NAXIS = 2 / 2-dimensional binary table
NAXIS1 = 24 / width of table in bytes
NAXIS2 = 3476 / number of rows in table
PCOUNT = 21789189 / size of special data area
GCOUNT = 1 / one data group (required keyword)
TFIELDS = 3 / number of fields in each row
TTYPE1 = ‘COMPRESSED_DATA’ / label for field 1
TFORM1 = ‘1PB(7267)’ / data format of field: variable length array
TTYPE2 = 'ZSCALE ’ / label for field 2
TFORM2 = '1D ’ / data format of field: 8-byte DOUBLE
TTYPE3 = 'ZZERO ’ …

ok :slight_smile:

1 Like

The 1.13.4x version you sent me seems to work ok with compressed master files

No , sirilic (1.13.4x) rejects the image and should not use it in the generated script.

I have to correct the problem.

I will post a version as soon as I have corrected the problem

it’s fixed.

could you test with this version of sirilic ?

sirilic-V1.13.4x2_password_sirilic_.zip (8.9 MB)

Thanks. I gave an exam yesterday, so I’m busy grading for a few days.

Sorry for the delay. The V1.13.4x2 version works with the master flat file I sent you earlier. Thanks!

1 Like

The new version of sirilic (1.13.4) is available here : https://gitlab.com/f…ilic/-/releases

doc: Siril - Sirilic