Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1import lsst.pipe.base as pipeBase 

2 

3from lsst.faro.base.CatalogSummaryBase import ( 

4 CatalogSummaryBaseTaskConnections, 

5 CatalogSummaryBaseTask, 

6 CatalogSummaryBaseConfig, 

7) 

8 

9__all__ = ( 

10 "PatchMatchedSummaryTaskConnections", 

11 "PatchMatchedSummaryConfig", 

12 "PatchMatchedSummaryTask", 

13 "TractMatchedSummaryTaskConnections", 

14 "TractMatchedSummaryConfig", 

15 "TractMatchedSummaryTask", 

16) 

17 

18 

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

20class PatchMatchedSummaryTaskConnections(CatalogSummaryBaseTaskConnections): 

21 measurements = pipeBase.connectionTypes.Input( 

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

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

24 storageClass="MetricValue", 

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

26 multiple=True, 

27 ) 

28 

29 

30class PatchMatchedSummaryConfig( 

31 CatalogSummaryBaseConfig, pipelineConnections=PatchMatchedSummaryTaskConnections 

32): 

33 pass 

34 

35 

36class PatchMatchedSummaryTask(CatalogSummaryBaseTask): 

37 

38 ConfigClass = PatchMatchedSummaryConfig 

39 _DefaultName = "patchMatchedSummaryTask" 

40 

41 

42class TractMatchedSummaryTaskConnections(CatalogSummaryBaseTaskConnections): 

43 measurements = pipeBase.connectionTypes.Input( 

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

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

46 storageClass="MetricValue", 

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

48 multiple=True, 

49 ) 

50 

51 

52class TractMatchedSummaryConfig( 

53 CatalogSummaryBaseConfig, pipelineConnections=TractMatchedSummaryTaskConnections 

54): 

55 pass 

56 

57 

58class TractMatchedSummaryTask(CatalogSummaryBaseTask): 

59 

60 ConfigClass = TractMatchedSummaryConfig 

61 _DefaultName = "tractMatchedSummaryTask"