Coverage for python/lsst/faro/summary/MatchedCatalogSummary.py: 0%

17 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-02-14 14:22 +0000

1# This file is part of faro. 

2# 

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# 

9# This program is free software: you can redistribute it and/or modify 

10# it under the terms of the GNU General Public License as published by 

11# the Free Software Foundation, either version 3 of the License, or 

12# (at your option) any later version. 

13# 

14# This program is distributed in the hope that it will be useful, 

15# but WITHOUT ANY WARRANTY; without even the implied warranty of 

16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

17# GNU General Public License for more details. 

18# 

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/>. 

21 

22import lsst.pipe.base as pipeBase 

23 

24from lsst.faro.base.CatalogSummaryBase import ( 

25 CatalogSummaryBaseConnections, 

26 CatalogSummaryBaseTask, 

27 CatalogSummaryBaseConfig, 

28) 

29 

30__all__ = ( 

31 "PatchMatchedSummaryConnections", 

32 "PatchMatchedSummaryConfig", 

33 "PatchMatchedSummaryTask", 

34 "TractMatchedSummaryConnections", 

35 "TractMatchedSummaryConfig", 

36 "TractMatchedSummaryTask", 

37) 

38 

39 

40# Dimensions of the Connections class define the iterations of runQuantum 

41class PatchMatchedSummaryConnections(CatalogSummaryBaseConnections): 

42 measurements = pipeBase.connectionTypes.Input( 

43 doc="{package}_{metric}.", 

44 dimensions=("tract", "patch", "instrument", "band"), 

45 storageClass="MetricValue", 

46 name="metricvalue_{package}_{metric}", 

47 multiple=True, 

48 ) 

49 

50 

51class PatchMatchedSummaryConfig( 

52 CatalogSummaryBaseConfig, pipelineConnections=PatchMatchedSummaryConnections 

53): 

54 pass 

55 

56 

57class PatchMatchedSummaryTask(CatalogSummaryBaseTask): 

58 

59 ConfigClass = PatchMatchedSummaryConfig 

60 _DefaultName = "patchMatchedSummaryTask" 

61 

62 

63class TractMatchedSummaryConnections(CatalogSummaryBaseConnections): 

64 measurements = pipeBase.connectionTypes.Input( 

65 doc="{package}_{metric}.", 

66 dimensions=("tract", "instrument", "band"), 

67 storageClass="MetricValue", 

68 name="metricvalue_{package}_{metric}", 

69 multiple=True, 

70 ) 

71 

72 

73class TractMatchedSummaryConfig( 

74 CatalogSummaryBaseConfig, pipelineConnections=TractMatchedSummaryConnections 

75): 

76 pass 

77 

78 

79class TractMatchedSummaryTask(CatalogSummaryBaseTask): 

80 

81 ConfigClass = TractMatchedSummaryConfig 

82 _DefaultName = "tractMatchedSummaryTask"