Task#
- class Task[source]#
Bases:
Config
Intersection tool
Searches for the intersection of all the anchors points in a list of filenames and updates the selection of anchor points in the same files.
For each anchor point the fraction of the closest distance to a neighbourhood is used. Anchor point under the threshold are removed (1 = most deleted, 0 = most kept). Possible to use multiprocessing with nthreads cpu. If you want to fix the anchors points, enter a master spectrum path and the number of copies you want of it.
It reads the files matching RASSINE*.p in the given input directory.
- ini_strict_sections_: ClassVar[Sequence[str]] = ['matching_anchors_scan']#
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
- config: Sequence[pathlib.Path][Sequence[Path]]#
Use the specified configuration files.
Files can be separated by commas/the command can be invoked multiple times.
- pickle_protocol: PickleProtocol[PickleProtocol]#
Pickle protocol version to use
- logging_level: LoggingLevel[LoggingLevel]#
Logging level to use
- input_table: Path[Path]#
Table of spectra from which to read the individual file names (produced by stacking step)
- input_pattern: PathPattern[PathPattern]#
Path pattern for input files
- master_spectrum: Optional[pathlib.Path][Optional[Path]]#
Name of the RASSINE master spectrum file
- no_master_spectrum: ClassVar[Expander] = Expander(help=None, short_flag_name=None, long_flag_name=<Derived.KEBAB_CASE: 3>, new_flag='--master-spectrum', new_value='')#
Do not use a RASSINE master spectrum file
- copies_master: int[int]#
Number of copy of the master.
If value 0 is specified, copies_master is set to 2*N with N the number of RASSINE files.
- __init__(config, root, pickle_protocol, logging_level, input_table, input_pattern, output_file, master_spectrum, copies_master, nthreads, fraction, threshold, tolerance)#