Coverage for metadetect / lsst / defaults.py: 100%
9 statements
« prev ^ index » next coverage.py v7.13.2, created at 2026-02-04 03:19 -0800
« prev ^ index » next coverage.py v7.13.2, created at 2026-02-04 03:19 -0800
1from copy import deepcopy
4DEFAULT_PGAUSS_FWHM = 2.0
6DEFAULT_PGAUSS_CONFIG = {
7 'fwhm': DEFAULT_PGAUSS_FWHM,
8}
10DEFAULT_STAMP_SIZE = 49
12# threshold for detection
13DEFAULT_THRESH = 5.0
15# whether to find and subtract the sky, happens before metacal
16DEFAULT_SUBTRACT_SKY = False
18# Control of the metacal process
19# currently we don't have any defaults
20DEFAULT_METACAL_CONFIG = {}
22# detection config, this may expand
23DEFAULT_DETECT_CONFIG = {
24 'thresh': DEFAULT_THRESH,
25}
27# the pgauss subconfig and the stamp_size defaults we be filled in
28# programatically based on the measurement_type
29DEFAULT_MDET_CONFIG = {
30 'subtract_sky': DEFAULT_SUBTRACT_SKY,
31 'detect': deepcopy(DEFAULT_DETECT_CONFIG),
32 'metacal': deepcopy(DEFAULT_METACAL_CONFIG),
33 'pgauss': deepcopy(DEFAULT_PGAUSS_CONFIG),
34 'stamp_size': DEFAULT_STAMP_SIZE,
35 'shear_bands': None,
36}