kinextract.read_template_list
- kinextract.read_template_list(list_file: str, template_dir: str | None = None) list[str][source]
Read a template-list file and resolve each entry to a full path.
- Parameters:
list_file (str) – Path to a text file listing one template filename per line (blank lines and lines starting with
#are ignored). This is the legacy “Tlist” file used to select which stellar/SSP templates participate in the fit.template_dir (str, optional) – Directory used to resolve relative filenames listed in list_file. Defaults to the directory containing list_file itself.
- Returns:
Resolved (absolute or as-given) paths to each template file, in the order listed, suitable for passing to
kinextract.templates.build_template_matrix_fortran().- Return type: