Coverage for python/lsst/ctrl/bps/cli/opt/options.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-01-07 02:13 -0800

1# This file is part of ctrl_bps. 

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 <http://www.gnu.org/licenses/>. 

21"""bps-specific command-line options. 

22""" 

23 

24__all__ = [ 

25 "extra_qgraph_option", 

26 "extra_init_option", 

27 "extra_run_quantum_option", 

28 "wms_service_option", 

29 "compute_site_option", 

30] 

31 

32from lsst.daf.butler.cli.utils import MWOptionDecorator 

33 

34extra_qgraph_option = MWOptionDecorator( 

35 "--extra-qgraph-options", help="String to pass through to QuantumGraph builder." 

36) 

37extra_init_option = MWOptionDecorator( 

38 "--extra-init-options", help="String to pass through to pipetaskInit execution." 

39) 

40extra_run_quantum_option = MWOptionDecorator( 

41 "--extra-run-quantum-options", help="String to pass through to Quantum execution." 

42) 

43wms_service_option = MWOptionDecorator( 

44 "--wms-service-class", 

45 "wms_service", 

46 help="Qualified name of the WMS service class to use. " 

47 "Value determined by following order: command-line argument, " 

48 "'wmsServiceClass' in config file (if used by subcommand), " 

49 "environment variable BPS_WMS_SERVICE_CLASS, default " 

50 "('lsst.ctrl.bps.wms.htcondor.HTCondorService')", 

51) 

52compute_site_option = MWOptionDecorator( 

53 "--compute-site", 

54 "compute_site", 

55 help="The compute site used to run the workflow.", 

56)