Task#
- class Task[source]#
Bases:
Config
Runs the YARARA pipeline
Attributes
Note: attributes inherited from parent classes are not shown here, if any
Text to display before the argument help
Prefix for automatically derived environment variable names
Names of sections to parse in configuration files, with unknown keys ignored
Names of additional sections to parse in configuration files, unknown keys error
Program name
Stage at which to start the processing
Stage before which to stop the processing
reference
Whether to close plots
Path to the data to process
Path to the SIMBAD database folder
Path to the mask_ccf folder
Path to the material folder
Methods
Parses multiple information sources into a configuration and display help on error
Returns an
argparse.ArgumentParser
for documentation purposesReturns a sequence of INI file sections to parse
Parses multiple information sources, returns a configuration, a command or an error
Parses the contents of an INI file into a configuration
Parses an INI file into a configuration
Returns a processor for this configuration
- rtype:
Optional
[Err
]
Returns all validators present in the given subclass of this class
Returns the version number of this script
List of members of Task
- prog = 'run_yarara'#
- data_folder: Path[Path]#
Path to the data to process
The path must have the format “STARNAME/data/s1d/INSTRUMENT/” It must also contain a WORKSPACE/ subfolder.
- __init__(stage_start, stage_break, reference, close_figure, data_folder, simbad_folder, mask_ccf_folder, material_folder)#
- description_: ClassVar[Optional[str]] = None#
Text to display before the argument help
If not present, taken from the Config subclass docstring.
- classmethod from_command_line_(cwd=None, args=None, env=None)#
Parses multiple information sources into a configuration and display help on error
Default values are taken from the current working directory, the script command line arguments, and the current environment variables.
- classmethod get_argument_parser_()#
Returns an
argparse.ArgumentParser
for documentation purposesThis may be removed or deprecated in later versions of configpile, if we write our own help/usage display function, and propose a Sphinx extension.
- Return type:
- ini_relaxed_sections_: ClassVar[Sequence[str]] = ['Common', 'COMMON', 'common']#
Names of sections to parse in configuration files, with unknown keys ignored
- classmethod ini_sections_()#
Returns a sequence of INI file sections to parse
By default, this parses first the relaxed sections and then the strict ones.
First, try to replace the contents of
ini_relaxed_sections_
andini_strict_sections_
. Otherwise, override this method.- Return type:
Sequence
[IniSection
]
- ini_strict_sections_: ClassVar[Sequence[str]] = []#
Names of additional sections to parse in configuration files, unknown keys error
- classmethod parse_command_line_(cwd=None, args=None, env=None)#
Parses multiple information sources, returns a configuration, a command or an error
Default values are taken from the current working directory, the script command line arguments, and the current environment variables.
- Parameters:
- Return type:
- Returns:
A parsed configuration or an error
- classmethod parse_ini_contents_(ini_contents)#
Parses the contents of an INI file into a configuration
This method skips the processing of environment variables and command-line parameters.
- classmethod parse_ini_file_(ini_file_path)#
Parses an INI file into a configuration
This method skips the processing of environment variables and command-line parameters.
- classmethod processor_()#
Returns a processor for this configuration
- Return type:
Processor
[TypeVar
(_Config
, bound= Config)]
- classmethod validators_()#
Returns all validators present in the given subclass of this class
Validators are methods that take no arguments (except self) and return an optional error. Their name starts with
validate_
.