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

9 statements  

« prev     ^ index     » next       coverage.py v7.5.0, created at 2024-04-26 02:56 -0700

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 

30__all__ = [ 

31 "extra_qgraph_option", 

32 "extra_update_qgraph_option", 

33 "extra_init_option", 

34 "extra_run_quantum_option", 

35 "wms_service_option", 

36 "compute_site_option", 

37] 

38 

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

40 

41extra_qgraph_option = MWOptionDecorator( 

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

43) 

44extra_update_qgraph_option = MWOptionDecorator( 

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

46) 

47extra_init_option = MWOptionDecorator( 

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

49) 

50extra_run_quantum_option = MWOptionDecorator( 

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

52) 

53wms_service_option = MWOptionDecorator( 

54 "--wms-service-class", 

55 "wms_service", 

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

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

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

59 "environment variable BPS_WMS_SERVICE_CLASS, default " 

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

61) 

62compute_site_option = MWOptionDecorator( 

63 "--compute-site", 

64 "compute_site", 

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

66)