Task#

class Task[source]#

Bases: Config

Intersection tool, 2nd step

Perform the intersection of the RASSINE files by using the anchor location saved in the master RASSINE spectrum.

prog_: ClassVar[Optional[str]] = 'matching_anchors_filter'#

Program name

ini_strict_sections_: ClassVar[Sequence[str]] = ['matching_anchors_filter']#

Names of additional sections to parse in configuration files, unknown keys error

ini_relaxed_sections_: ClassVar[Sequence[str]] = ['matching']#

Names of sections to parse in configuration files, with unknown keys ignored

env_prefix_: ClassVar[str] = 'RASSINE'#

Prefix for automatically derived environment variable names

config: Sequence[pathlib.Path][Sequence[Path]]#

Use the specified configuration files.

Files can be separated by commas/the command can be invoked multiple times.

root: Path[Path]#

Root path of the data, used as a base for other relative paths

pickle_protocol: PickleProtocol[PickleProtocol]#

Pickle protocol version to use

logging_level: LoggingLevel[LoggingLevel]#

Logging level to use

master_tool: Path[Path]#

Path to master tool file produced by matching_anchors_scan

process_master: Optional[pathlib.Path][Optional[Path]]#

Path of the master spectrum file to process

The master spectrum is processed independently from other spectra

Note that process_master is a path relative to “root”

process_table: Optional[pathlib.Path][Optional[Path]]#

Table of stacked spectra from which to read the individual spectrum names

The parameters process_table, process_pattern and process_indices must be all provided together

process_pattern: Optional[rassine.lib.data.PathPattern][Optional[PathPattern]]#

Relative path (pattern) for the files to process

The parameters process_table, process_pattern and process_indices must be all provided together

process_indices: Sequence[int][Sequence[int]]#

Indices of spectrum to process

The parameters process_table, process_pattern and process_indices must be all provided together

validate_file()[source]#

Validates the file parameters

Return type:

Optional[Err]

add_new: bool[bool]#

Add anchor points that were not detected.

output_table: Optional[pathlib.Path][Optional[Path]]#

Diagnostic information table

__init__(config, root, pickle_protocol, logging_level, master_tool, process_master, process_table, process_pattern, process_indices, add_new, output_table)#