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

10 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-01 08:22 +0000

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 software is dual licensed under the GNU General Public License and also 

10# under a 3-clause BSD license. Recipients may choose which of these licenses 

11# to use; please see the files gpl-3.0.txt and/or bsd_license.txt, 

12# respectively. If you choose the GPL option then the following text applies 

13# (but note that there is still no warranty even if you opt for BSD instead): 

14# 

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

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

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

18# (at your option) any later version. 

19# 

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

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

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

23# GNU General Public License for more details. 

24# 

25# You should have received a copy of the GNU General Public License 

26# along with this program. If not, see <http://www.gnu.org/licenses/>. 

27"""The bps-specific command-line options.""" 

28 

29__all__ = [ 

30 "compute_site_option", 

31 "extra_init_option", 

32 "extra_qgraph_option", 

33 "extra_run_quantum_option", 

34 "extra_update_qgraph_option", 

35 "id_link_path_option", 

36 "make_id_link_option", 

37 "wms_service_option", 

38] 

39 

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

41 

42extra_qgraph_option = MWOptionDecorator( 

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

44) 

45extra_update_qgraph_option = MWOptionDecorator( 

46 "--extra-update-qgraph-options", help="String to pass through to QuantumGraph updater." 

47) 

48extra_init_option = MWOptionDecorator( 

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

50) 

51extra_run_quantum_option = MWOptionDecorator( 

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

53) 

54wms_service_option = MWOptionDecorator( 

55 "--wms-service-class", 

56 "wms_service", 

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

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

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

60 "environment variable BPS_WMS_SERVICE_CLASS, default " 

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

62) 

63compute_site_option = MWOptionDecorator( 

64 "--compute-site", 

65 "compute_site", 

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

67) 

68 

69make_id_link_option = MWOptionDecorator( 

70 "--make-id-link", 

71 "make_id_link", 

72 default=False, 

73 is_flag=True, 

74 help="Make a link to the submit directory using the workflow id.", 

75) 

76 

77id_link_path_option = MWOptionDecorator( 

78 "--id-link-path", 

79 "id_link_path", 

80 help="Location in which to make id soft link to the submit directory.default ('${PWD}/bps_links')", 

81)