Can't run PySiril sceipt

Hi everyone,

typing from the phone since for some odd reason I can’t open this site in any browser on PC.

I have found there is one Python script AutoStarnetFITS.py I want to use for comet stacking but when I run it I get the error “ERROR: *** ThreadReader::run() ‘str’ object has no attribute ‘append’”

I am usin PySiril 0.0.12, Siril version 1.2.0-beta1

Can I do something to make that script work?

Thank you

This script is deprecated with the new version of Siril.
ALso, Pysiril 0.0.12 won’t work with Siril 1.2.0. You need to upgrade it.

Is there newer version tjhat script then?

Unfortunately 0.0.13 doesn’t work too
Wrapper is starting well now, but migration from “preprocess” to “calibrate” was not done.
Else it would be nice to have new commands like “calibrate_single” available.

Preprocess_single is just deprecated but always work. Same for preprocess



> preprocess tmp_file -dark=c:/Siril/darks/DARK_ATR3CMOS26000KMA_G100_OFS250_Bin1x1_120s_-20C_stacked -flat=c:/Siril/flats/pp_FLAT_BKP200_ANGL90_Ha_stacked -cc=False
: log: Running command: preprocess
: log: This command is deprecated: calibrate should be used instead.
INFO   : status: error preprocess
: log: Reading FITS: file DARK_ATR3CMOS26000KMA_G100_OFS250_Bin1x1_120s_-20C_stacked, 1 layer(s), 6224x4168 pixels, 32 bits
: log: Reading FITS: file pp_FLAT_BKP200_ANGL90_Ha_stacked, 1 layer(s), 6224x4168 pixels, 32 bits
: log: Unknown argument (NULL), aborting.
> [status: error]


There is no “-cc” in y script:


cmd.preprocess("tmp_file", dark=os.path.join(conf["darksdir"],DarkFile), flat=os.path.join(conf["flatsdir"],FlatFile), debayer=conf["debayer"])

And Preprocess_single is new for 1.2. It doesn’t work in 1.0.6

New commands preprocess_single,

Adding cc=“dark 0 0” resolved the issue, but according to documentation it is optional parameter:

calibrate sequencename [-bias=filename|value] [-dark=filename] [-flat=filename] [{ -cc=dark [siglo sighi] | -cc=bpm bpmfile }] [-cfa] [-debayer] [-fix_xtrans] [-equalize_cfa] [-opt] [-prefix=] [-fitseq]

Hello, the possible arguments for -cc= are dark or bpm, not False or anything else. If you want to disable cosmetic correction, just don’t pass the -cc= option.

I never used “cc=False”.
When I use from Pysiril it adds “cc=False” itself, or it is Siril pipe or command line is adding it.
But problem even not something adds “cc” itself, but it can not work with synthetic offset at all.
When I use “preprocess FLAT_BKP200_ANGL90_L -bias==253” something adds -cc-False" and error is “Unknown argument”
When I trying to suppress it with "cc=“dark 0 0"” it of course reporting that I don’t provid dark (yes I like synthetic offsets instead)

> preprocess FLAT_BKP200_ANGL90_L -bias==253 -cc=False
INFO   : status: error preprocess
: log: Running command: preprocess
: log: This command is deprecated: calibrate should be used instead.
: log: Synthetic offset: Level = 253
: log: Unknown argument (NULL), aborting.
> [status: error]

This is command from my script:

cmd.preprocess(flat, bias="=253")

variable flat is “FLAT_BKP200_ANGL90_L” in this case

Ok, sorry. @M27trogonondepomme I think you have a fix to make with the cosmetic correction argument of the preprocess/calibrate commands.

Thanks

Thank you!

I will fix the problem

1 Like

the problem is fixed in version V0.0.14