Coverage for metadetect / lsst / tests / test_lsst_dm_configs.py: 22%

7 statements  

« prev     ^ index     » next       coverage.py v7.13.2, created at 2026-02-13 01:40 -0800

1from lsst.meas.algorithms import SourceDetectionConfig 

2 

3 

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 ] 

28 

29 config = SourceDetectionConfig() 

30 

31 keys = config.toDict().keys() 

32 

33 for key in keys: 

34 assert key in expected_keys, f'found unexpected config key {key}'