LSSTApplications  11.0-13-gbb96280,12.1+18,12.1+7,12.1-1-g14f38d3+72,12.1-1-g16c0db7+5,12.1-1-g5961e7a+84,12.1-1-ge22e12b+23,12.1-11-g06625e2+4,12.1-11-g0d7f63b+4,12.1-19-gd507bfc,12.1-2-g7dda0ab+38,12.1-2-gc0bc6ab+81,12.1-21-g6ffe579+2,12.1-21-gbdb6c2a+4,12.1-24-g941c398+5,12.1-3-g57f6835+7,12.1-3-gf0736f3,12.1-37-g3ddd237,12.1-4-gf46015e+5,12.1-5-g06c326c+20,12.1-5-g648ee80+3,12.1-5-gc2189d7+4,12.1-6-ga608fc0+1,12.1-7-g3349e2a+5,12.1-7-gfd75620+9,12.1-9-g577b946+5,12.1-9-gc4df26a+10
LSSTDataManagementBasePackage
PipelineConfig.py
Go to the documentation of this file.
1 from __future__ import absolute_import
2 import lsst.pex.config as pexConfig
3 from lsst.ctrl.orca.config.DirectoryConfig import DirectoryConfig
4 
5 # information about app stages
6 
7 
8 class AppStageConfig(pexConfig.Config):
9  # class to invoke for parallel execution
10  parallelClass = pexConfig.Field("class", str)
11  # stage name
12  stageConfig = pexConfig.Field("config name", str)
13 
14 # execution information
15 
16 
17 class ExecuteConfig(pexConfig.Config):
18  # directory configuration
19  dir = pexConfig.ConfigField("directories", DirectoryConfig)
20  # environment used to execute programs
21  environment = pexConfig.Field("environment", str)
22  # task name
23  task = pexConfig.Field("task", str)
24 
25 # framework
26 
27 
28 class FrameworkConfig(pexConfig.Config):
29  # script to invoke to execute application
30  script = pexConfig.Field("program to execute", str)
31  # type
32  type = pexConfig.Field("type", str)
33  # environment used to execute programs
34  environment = pexConfig.Field("environment to set up", str)
35 
36 # deployment information
37 
38 
39 class DeployConfig(pexConfig.Config):
40  # number of processes per node
41  processesOnNode = pexConfig.ListField("processes", str)
42 
43 # definition of pipeline
44 
45 
46 class PipelineDefinitionConfig(pexConfig.Config):
47  # execution configuration
48  execute = pexConfig.ConfigField("execute", ExecuteConfig)
49  # framework configuration
50  framework = pexConfig.ConfigField("execute", FrameworkConfig)
51 
52 
53 # pipeline configuration
54 class PipelineConfig(pexConfig.Config):
55  # pipeline definition configuration
56  definition = pexConfig.ConfigField("definition", PipelineDefinitionConfig)
57  # deployment configuration
58  deploy = pexConfig.ConfigField("deployment info", DeployConfig)
59  # job number
60  runCount = pexConfig.Field("job definition", int)