Two Siril 1.4 Python scripts to create master biases and darks

I would like to code review to get some feedback for these two scripts that I’ve created. I’m really interested if the stacking options that I’m using make sense for the bias and dark masters. What would be the best process for this? The scripts will recursively parse a directory structure and create the masters. I creates the bias and dark frames using N.I.N.A. I have attached the scripts.

C:\USERS\ROLAN\DOCUMENTS\N.I.N.A\TARGETS\2025-10-05\DARKS
└───15.00s
├───100g
│ └───10
│ └───DARKS
└───111g
├───10
│ └───DARKS
├───20
│ └───DARKS
└───30
└───DARKS

make_master_biases_auto.py (4.8 KB)
make_master_darks_auto.py (5.9 KB)

I am really interested in which stacking method that I should use. Currently I am using median but am considering adding rejection as an option. Which one is recommended as the default?

  • mean – simple mean average
  • med – median
  • rejmean with rejection (sigma-clipping)

I have created a github repo for these scripts.