pdstools.utils.report_utils._filenames ====================================== .. py:module:: pdstools.utils.report_utils._filenames .. autoapi-nested-parse:: Filename generation and resource copying for report rendering. Functions --------- .. autoapisummary:: pdstools.utils.report_utils._filenames.get_output_filename pdstools.utils.report_utils._filenames.copy_quarto_file pdstools.utils.report_utils._filenames.copy_report_resources Module Contents --------------- .. py:function:: get_output_filename(name: str | None, report_type: str, model_id: str | None = None, output_type: str = 'html') -> str Generate the output filename based on the report parameters. If ``name`` already ends with ``.{output_type}`` (case-insensitive), it is treated as a full filename and returned verbatim (after replacing spaces with underscores). Otherwise the filename is composed from ``report_type``, ``name``, and ``model_id`` with the extension appended. .. py:function:: copy_quarto_file(qmd_file: str, temp_dir: pathlib.Path) -> None Copy the report quarto file to the temporary directory. :param qmd_file: Name of the Quarto markdown file to copy :type qmd_file: str :param temp_dir: Destination directory to copy files to :type temp_dir: Path :rtype: None .. py:function:: copy_report_resources(resource_dict: list[tuple[str, str]]) Copy report resources from the reports directory to specified destinations. :param resource_dict: list of tuples containing (source_path, destination_path) pairs :type resource_dict: list[tuple[str, str]] :rtype: None