cape.pylava.options.runctlopts
: LAVACURV run control options¶
This is the "RunControl"
options module specific to
cape.pylava
. It is based primarily on
and provides the class
Among the LAVA-specific options interfaced here are the options for
the LAVA executables, defined in the "RunControl"
section
- class cape.pylava.options.runctlopts.RunControlOpts(*args, **kw)¶
- get_RunYaml(j=None, i=None, **kw)¶
Get Name of yaml input file to superlava
- Call:
>>> RunYaml = opts.get_RunYaml(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- RunYaml: {
'run.yaml'
} |str
Name of yaml input file to superlava
- RunYaml: {
- get_lava_executable(j=None, i=None, **kw)¶
Get path to superlava executable
- Call:
>>> executable = opts.get_lava_executable(j=None, i=None, **kw)
- Inputs:
- opts: SuperlavaOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- executable: {
'superlava'
} |str
path to superlava executable
- executable: {
- get_lava_yamlfile(j=None, i=None, **kw)¶
Get name of LAVA YAML file to use
- Call:
>>> yamlfile = opts.get_lava_yamlfile(j=None, i=None, **kw)
- Inputs:
- opts: SuperlavaOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- yamlfile: {
'run.yaml'
} |str
name of LAVA YAML file to use
- yamlfile: {
- get_superlava(j=None, i=None, **kw)¶
Get value of option “superlava”
- Call:
>>> superlava = opts.get_superlava(j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- j: {
None
} |int
Phase index; use
None
to just return v- i: {
None
} |int
|np.ndarray
opts.x index(es) to use with
@expr
,@map
, etc.- vdef: {
None
} |object
Manual default
- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- ring: {opts._optring[key]} |
True
|False
Override option to loop through phase inputs
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- x: {
None
} |dict
Ref conditions to use with
@expr
,@map
, etc.; often a run matrix; used in combination with i- sample: {
True
} |False
Apply j, i, and other settings recursively if output is a
list
ordict
- Outputs:
- superlava: {
None
} |object
value of option “superlava”
- superlava: {
- set_RunYaml(v, j=None, mode=None)¶
Get Name of yaml input file to superlava
- Call:
>>> opts.set_RunYaml(RunYaml, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- RunYaml: {
'run.yaml'
} |str
Name of yaml input file to superlava
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_lava_executable(v, j=None, mode=None)¶
Get path to superlava executable
- Call:
>>> opts.set_lava_executable(executable, j=None, i=None, **kw)
- Inputs:
- opts: SuperlavaOpts
options interface
- executable: {
'superlava'
} |str
path to superlava executable
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_lava_yamlfile(v, j=None, mode=None)¶
Get name of LAVA YAML file to use
- Call:
>>> opts.set_lava_yamlfile(yamlfile, j=None, i=None, **kw)
- Inputs:
- opts: SuperlavaOpts
options interface
- yamlfile: {
'run.yaml'
} |str
name of LAVA YAML file to use
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar
- set_superlava(v, j=None, mode=None)¶
Get value of option “superlava”
- Call:
>>> opts.set_superlava(superlava, j=None, i=None, **kw)
- Inputs:
- opts: RunControlOpts
options interface
- superlava: {
None
} |object
value of option “superlava”
- j: {
None
} |int
Phase index; use
None
to just return v- mode: {
None
} |0
|1
|2
|3
Warning mode code
0
:no checks
1
:validate silently
2
:validate and show warnings
3
:raise an exception if invalid
- listdepth: {
0
} |int
> 0 Depth of list to treat as a scalar