Coverage for metadetect / lsst / tests / test_lsst_dm_configs.py: 22%
7 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-15 07:00 -0300
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-15 07:00 -0300
1from lsst.meas.algorithms import SourceDetectionConfig
4def test_detect_config():
5 expected_keys = [
6 'minPixels',
7 'isotropicGrow',
8 'combinedGrow',
9 'nSigmaToGrow',
10 'returnOriginalFootprints',
11 'thresholdValue',
12 'includeThresholdMultiplier',
13 'thresholdType',
14 'thresholdPolarity',
15 'adjustBackground',
16 'reEstimateBackground',
17 'background',
18 'tempLocalBackground',
19 'doTempLocalBackground',
20 'tempWideBackground',
21 'doTempWideBackground',
22 'nPeaksMaxSimple',
23 'nSigmaForKernel',
24 'statsMask',
25 'excludeMaskPlanes',
26 'doApplyFlatBackgroundRatio',
27 ]
29 config = SourceDetectionConfig()
31 keys = config.toDict().keys()
33 for key in keys:
34 assert key in expected_keys, f'found unexpected config key {key}'