[docs]classSubsamplingHTMLBuilder:""" A class that will make a HTML file(s) out of SubsamplingState object to show what analysis took place in the SubsamplingInstruction. """CSS_PATH=EnvironmentSettings.html_templates_path/"css/custom.css"
[docs]@staticmethoddefbuild(state:SubsamplingState)->str:""" Function that builds the HTML files based on the Subsampling state. Arguments: state: SubsamplingState object including all details of the Subsampling instruction Returns: path to the main HTML file (which is located under state.result_path) """base_path=PathBuilder.build(state.result_path/"../HTML_output/")html_map=SubsamplingHTMLBuilder.make_html_map(state,base_path)result_file=base_path/f"Subsampling_{state.name}.html"TemplateParser.parse(template_path=EnvironmentSettings.html_templates_path/"Subsampling.html",template_map=html_map,result_path=result_file)returnresult_file