Coverage for metadetect / lsst / defaults.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-24 01:37 -0800

1from copy import deepcopy 

2 

3 

4DEFAULT_WEIGHT_FWHMS = { 

5 'wmom': 1.2, 

6 'ksigma': 2.0, 

7 'pgauss': 2.0, 

8} 

9DEFAULT_FWHM_SMOOTH = 0 

10DEFAULT_FWHM_REG = 0 

11 

12DEFAULT_STAMP_SIZES = { 

13 'wmom': 32, 

14 'ksigma': 64, 

15 'pgauss': 49, 

16 'am': 49, 

17 'gauss': 49, 

18} 

19 

20# threshold for detection 

21DEFAULT_THRESH = 5.0 

22 

23# whether to find and subtract the sky, happens before metacal 

24DEFAULT_SUBTRACT_SKY = False 

25 

26# config for fitting the original psfs 

27DEFAULT_PSF_CONFIG = { 

28 'model': 'am', 

29 'ntry': 4, 

30} 

31 

32# Control of the metacal process 

33# not currently used for new metacal_exposures code that always 

34DEFAULT_METACAL_CONFIG = { 

35 "use_noise_image": True, 

36 "psf": "fitgauss", 

37} 

38 

39# detection config, this may expand 

40DEFAULT_DETECT_CONFIG = { 

41 'thresh': DEFAULT_THRESH, 

42} 

43 

44# the weight subconfig and the stamp_size defaults we be filled in 

45# programatically based on the measurement_type 

46DEFAULT_MDET_CONFIG = { 

47 'meas_type': 'wmom', 

48 'subtract_sky': DEFAULT_SUBTRACT_SKY, 

49 'detect': deepcopy(DEFAULT_DETECT_CONFIG), 

50 'psf': deepcopy(DEFAULT_PSF_CONFIG), 

51 'metacal': deepcopy(DEFAULT_METACAL_CONFIG), 

52 'weight': None, 

53 'stamp_size': None, 

54}