pypeit.core.qa module
Module for QA in PypeIt
- pypeit.core.qa.gen_qa_dir(qa_path)[source]
Make the QA directory if it doesn’t already exist
- Parameters:
qa_path (str) – Path to the QA folder
- pypeit.core.qa.gen_timestamp()[source]
Generate a simple time stamp including the current user
- Returns:
timestamp – user_datetime
- Return type:
- pypeit.core.qa.get_dimen(x, maxp=25)[source]
Assign the plotting dimensions to be the “most square”
- pypeit.core.qa.html_end(f, body, links=None)[source]
Fill in the HTML file with a proper ending
- Parameters:
f (io.TextIOWrapper)
body (str)
links (str, optional)
- Returns:
end – The text written to the end of the HTML file
- Return type:
- pypeit.core.qa.html_init(f, title)[source]
Initialize the HTML file
- Parameters:
f (io.TextIOWrapper) – file object to write to
title (str) – title
- Returns:
Initial HTML text incluing the header and links
- Return type:
- pypeit.core.qa.html_mf_pngs(idval)[source]
Generate HTML for QA PNGs
- Parameters:
idval – str Key identifier of the calibration set
- Returns:
links – HTML links to the PNGs
body – HTML edits for the main body
- Return type: