1
+ # This file is part of meas_algorithms.
1
2
#
2
- # LSST Data Management System
3
- #
4
- # Copyright 2008-2017 AURA/LSST.
5
- #
6
- # This product includes software developed by the
7
- # LSST Project (http://www.lsst.org/).
3
+ # Developed for the LSST Data Management System.
4
+ # This product includes software developed by the LSST Project
5
+ # (https://www.lsst.org).
6
+ # See the COPYRIGHT file at the top-level directory of this distribution
7
+ # for details of code ownership.
8
8
#
9
9
# This program is free software: you can redistribute it and/or modify
10
10
# it under the terms of the GNU General Public License as published by
16
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
17
# GNU General Public License for more details.
18
18
#
19
- # You should have received a copy of the LSST License Statement and
20
- # the GNU General Public License along with this program. If not,
21
- # see <https://www.lsstcorp.org/LegalNotices/>.
22
- #
19
+ # You should have received a copy of the GNU General Public License
20
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
23
21
24
22
__all__ = ["BasePsfDeterminerConfig" , "BasePsfDeterminerTask" , "psfDeterminerRegistry" ]
25
23
@@ -40,41 +38,6 @@ class BasePsfDeterminerConfig(pexConfig.Config):
40
38
optional = True ,
41
39
check = lambda x : (x > 0 ) & (x % 2 == 1 ),
42
40
)
43
- kernelSize = pexConfig .Field [int ](
44
- doc = "Size of the kernel to create. "
45
- "If less than 15, then the median of the square root of the "
46
- "stellar quadrupole moments is multiplied by kernelSize and "
47
- "used as the kernel size." ,
48
- default = None ,
49
- optional = True ,
50
- deprecated = "This field is deprecated and will be removed after v25. "
51
- "Use stampSize instead." ,
52
- )
53
- kernelSizeMin = pexConfig .Field [int ](
54
- doc = "Minimum radius of the kernel. Relevant only if kernelSize < 15." ,
55
- default = 25 ,
56
- deprecated = "This field is deprecated and will be removed after v25." ,
57
- )
58
- kernelSizeMax = pexConfig .Field [int ](
59
- doc = "Maximum radius of the kernel. Relevant only if kernelSize < 15." ,
60
- default = 45 ,
61
- deprecated = "This field is deprecated and will be removed after v25." ,
62
- )
63
-
64
- def validate (self ):
65
- # TODO: DM-36311: Lines involving kernelSize* (or the entire method)
66
- # may be removed after v25.
67
- super ().validate ()
68
- # Ensure that stampSize and kernelSize are not contradictory.
69
- if self .stampSize is not None and self .kernelSize is not None :
70
- raise pexConfig .FieldValidationError (self .__class__ .kernelSize , self ,
71
- "Only one of stampSize (preferable) and kernelSize "
72
- "(deprecated) must be set."
73
- )
74
- if self .kernelSizeMin > self .kernelSizeMax :
75
- raise pexConfig .FieldValidationError (self .__class__ .kernelSizeMax , self ,
76
- "kernelSizeMin must be <= kernelSizeMax"
77
- )
78
41
79
42
80
43
class BasePsfDeterminerTask (pipeBase .Task , metaclass = abc .ABCMeta ):
0 commit comments