gstlal 1.13.0
Loading...
Searching...
No Matches
python.dags.Option Class Reference

Public Member Functions

 __post_init__ (self)
 arg_basename (self)
 vars (self, basename=False)
 files (self, basename=False)
 remaps (self)

Public Attributes

 condor_name = self.name.replace("-", "_")
 arg_basename

Static Public Attributes

Optional argument = None
Optional track = True
Optional remap = True
Optional suppress = False
Optional suppress_with_remap = False

Detailed Description

Defines a command-line option (long form).

    This provides some extra functionality over defining command line
    options explicitly, in addition to some extra parameters which
    sets how condor interprets how to handle them within the DAG
    and within submit descriptions.

    Parameters
    ----------
    name
        The option name to be used in a command.
    argument
        The argument value(s) used in a command.
    track
        Whether to track files defined here and used externally within
        jobs to determine parent-child relationships when nodes specify
        this option as an input or output. On by default.
    remap
        Whether to allow remapping of output files being transferred.
        If set, output files will be moved to their target directories
        after files are transferred back. This is done to avoid issues
        where the target directories are available on the submit node
        but not on the exectute node. On by default.
    suppress
        Whether to hide this option. Used externally within jobs to
        determine whether to define job arguments. This is typically used
        when you want to track file I/O used by a job but isn't directly
        specified in their commands. Off by default.
    suppress_with_remap
        Same as suppress but allowing transfer remaps to still occur.
        Used when you want to track file output which is not directly
        specified in their command but whose file locations changed
        compared to their inputs. Off by default.

    Examples
    ________
    >>> Option("verbose").vars()
    '--verbose'

    >>> Option("input-type", "file").vars()
    '--input-type file'

    >>> Option("ifos", ["H1", "L1", "V1"]).vars()
    '--ifos H1 --ifos L1 --ifos V1'

Definition at line 298 of file __init__.py.

Member Function Documentation

◆ __post_init__()

python.dags.Option.__post_init__ ( self)

Definition at line 352 of file __init__.py.

◆ arg_basename()

python.dags.Option.arg_basename ( self)

Definition at line 371 of file __init__.py.

◆ files()

python.dags.Option.files ( self,
basename = False )

Definition at line 392 of file __init__.py.

◆ remaps()

python.dags.Option.remaps ( self)

Definition at line 395 of file __init__.py.

◆ vars()

python.dags.Option.vars ( self,
basename = False )

Definition at line 374 of file __init__.py.

Member Data Documentation

◆ arg_basename

python.dags.Option.arg_basename

Definition at line 393 of file __init__.py.

◆ argument

python.dags.Option.argument = None
static

Definition at line 346 of file __init__.py.

◆ condor_name

python.dags.Option.condor_name = self.name.replace("-", "_")

Definition at line 355 of file __init__.py.

◆ remap

Optional python.dags.Option.remap = True
static

Definition at line 348 of file __init__.py.

◆ suppress

Optional python.dags.Option.suppress = False
static

Definition at line 349 of file __init__.py.

◆ suppress_with_remap

Optional python.dags.Option.suppress_with_remap = False
static

Definition at line 350 of file __init__.py.

◆ track

Optional python.dags.Option.track = True
static

Definition at line 347 of file __init__.py.


The documentation for this class was generated from the following file: