module config.sample_tables
¶
ZARP sample table processing.
DEPRECATED: This module is deprecated and will be removed in a future release.
Use :mod:zarp.samples.sample_table_processor
instead.
class SampleTableProcessor
¶
Process ZARP sample tables.
Read, write and process ZARP sample tables.
Args:
records
: List of sample table records.
Attributes:
records
: List of sample table records.
method __init__
¶
__init__(records: Optional[List[Dict[str, Any]]] = None) → None
Class constructor.
method read
¶
read(path: Path) → None
Read sample table.
Args:
path
: Path to sample table.
method resolve_path
¶
resolve_path(anchor: Union[Path, str], path: Union[Path, str]) → Path
Resolve absolute path relative to an anchor.
Args:
anchor
: Anchor path.path
: Path to resolve. If absolute, will be returned as is, but as Path object.
method write
¶
write(path: Path) → None
Write ZARP sample table.
Args:
path
: Path where sample table is to be written.