I’ve written a python script for calibration+ with the pysiril module and while it works, it seems to be much slower (2X) than similar scripts using sirilpy that run from siril’s UI.
Is there a way to run a python script that uses sirilpy from a command line i.e. without opening the siril UI?
I created a very simple sirilpy script that runs when loaded from the siril UI, but if I try from siril-cli I get an error that the ‘requires’ command is missing.
log: The "requires" command is missing at the top of the script file. This command is needed to check script compatibility.
I get the same error when trying to run other python scripts that are in the repo.
I added the following at the top of my script, (trying the use the example here, Sirilpy Python Module API 0.8.6 Reference — Siril 1.4.0-beta4 documentation)
siril = s.SirilInterface()
siril.cmd(“requires”, “1.3.6”)
However now the script will not run from the siril UI
siril.cmd("requires", "1.3.6")
19:44:46: ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
19:44:46: File "/home/grahams/.local/share/siril/venv/lib/python3.13/site-packages/sirilpy/connection.py", line 1095, in cmd
19:44:46: raise SirilError(_("Error in cmd(): {e}")) from e
19:44:46: sirilpy.exceptions.SirilError: Error in cmd(): {e}
Is it possible / intended that sirilpy based scripts can be run from a command line?
If so, is there an example of a script than can be run this way?
i.e. siril-cli -d /home/someone/somewhere -s /home/siril/scripts/some_script.py