convert command does not create .seq file (1.0.1)

It looks like convert command doesn’t create .seq file if -out directory is different with the current directory.

For example it works:
convert TEST -out=.

For example it doesn’t work:
convert TEST -out=…

.fit files created in both cases.

Sorry, It looks that problem with the sequence name (length or some symbol).
I found workaround to use shorter and simpler names

Tried to use names like “M101_B_G100_OFS250_1x1_120s” when it failed

Hello, conversion does not create the .seq file, only the FITS or SER files.

Hi Vincent,

For me it creates if more than one file converts (And I need it :slight_smile: ):

cmd.convert(seqsfile, out=os.path.join(args.seqsdir,Dir,SubDir))
shutil.copyfile(MetaFile,os.path.join(args.seqsdir,Dir,SubDir,MetaFile))
cmd.cd(os.path.join(args.seqsdir,Dir,SubDir))
cmd.seqstat(seqsfile,seqsfile+".cvs")

PS C:\Users\virog> dir C:\pp_seq\M101_14-03-13_N54-20-56_ATR3CMOS26000KMA_FLEN910_ANGL5\M101_B_G100_OFS250_1x1_120s\

Directory: C:\pp_seq\M101_14-03-13_N54-20-56_ATR3CMOS26000KMA_FLEN910_ANGL5\M101_B_G100_OFS250_1x1_120s

Mode LastWriteTime Length Name


-a---- 2022-04-10 1:27 PM 89193 ImagesInformation.json
-a---- 2022-04-10 1:28 PM 3271 pp_sequince.cvs
-a---- 2022-04-10 4:32 PM 4629 pp_sequince_.seq
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00001.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00002.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00003.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00004.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00005.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00006.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00007.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00008.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00009.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00010.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00011.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00012.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00013.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00014.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00015.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00016.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00017.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00018.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00019.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00020.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00021.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00022.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00023.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00024.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00025.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00026.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00027.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00028.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00029.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00030.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00031.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00032.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00033.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00034.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00035.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00036.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00037.fit
-a—l 2022-04-10 1:27 PM 0 pp_sequince_00038.fit

-a—l 2022-04-10 1:27 PM 0 pp_sequince_00039.fit

Yes, but this is not the convert sequence that creates a sequence.
Other commands like preprocess, register, stack, are doing that.

From documentation - Convert all images of the current working directory that are in a supported format into Siril’s sequence…

All I need is to create .seq file from already preprocessed files (in future will use for this preprocess_single). I need it to use Siril interactively for visual control and final selection of images alreaty pre-selected and pre-processesed by other sctripts. So far convert command does work (with issues related with length of path or length of sequence name).

What command I need to use for creating .seq files if convert is wrong command. On this stage I don’t need register or stack anything yet. I need just to create the list of images to uncheck some “I xx 1” lines of .seq file.

In fact you don’t have to bother with the seq file. If Siril needs it, il will create it.
For example if you have some FITS file named:

light_001.fit
light_002.fit
light_003.fit
light_004.fit
light_005.fit

without seq file.
If you use the stack command, then the sequence will be built first.
If the sequence is not built, then your files don’t follow the naming convention.

I need to automate what only can be automated. I am not keeping lights or flats for example. I am shooting lights and flats daily, independent of visibility (in good luck for cloud brakes). So I use python to call ASTAP (calculate Separation from target, stars count, HFD) collect information from FITS headers, collecting guiding information, call Siril for Stat and calibrate images (I am not keeping not calibrated lights as for me better to keep already preprocessed images).

Calibrated images (taken during many years in different applications) with all collected meta information sorted automatically according geometry of image and then according exposures.

All I need is self automatically create lists of images to quck visual control BEFORE automatic registration and stacking. I want just to create .seq for fits which doesn’t have .seq yet and then click on seq for quick start of Siril.

Considering it could be never Sitil was called before for files, how to create .seq files for files? I am aware that files don’t follow Siril dataflow yet, but I want yo start further Siril processes from creating .seq files. No stacking. Only converting files to Siril sequence.

How to do so simple step from script? Document states “convert” command is exactly what I need to convert any FITS (let say not Siril FITS) to Siril sequence. I want for example to just keep this sequence. Not stack it, but just to create and SAVE.

What I mean.

  • If you use the convert command from the UI (in the command line), then the seq file will be created, and the new sequence is loaded (in fact this is this task that build the seq file).
  • if you convert from the convert tab, then the new sequence is loaded and the seq file is built
  • if you convert from script, there are no UI interaction and then no seq file is built because the new sequence is not loaded. And as I said, the convert command does not build the seq file by itself.

There is no special command to build the seq file. The seq file is built if Siril need it.
Sorry.

Ok if Siril need .seq it creates it for itself. Nice to know. What about users want to create and save it??? What if we don’t want to spend time on other operations like stacking yet???

Doesn’t matter. You can keep it how you want. Fortunately, Siril creates files for me now. If it stops, I will write few more lines in python to create text file with one S, one L, and several I statements.

But I still think that creating a sequence without creating a .seq file is the BUG.

Oh no. The seq file is created when needed. For me it is not a bug at all (it’s a feature), this is how we want Siril works. Because generally, Siril is used for more than converting files.

Not sure I grasp the whole process you are after, but if you need to create a seq file to further manipulate it, there are a few useful functions in the addons class of pySiril.
In particular, I’m thinking about CreateSeqFile which is probably very close to your use case.

Cheers

C.

1 Like

Hi Cissou, thank you!

It looks it is exactly what I was looking for.