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.get_dimen(x, maxp=25)[source]
Assign the plotting dimensions to be the “most square”
- Parameters:
- Return type:
- Returns:
pages (list) – The number of panels in the x and y direction on each page
npp (list) – The number of panels on each page
- 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.set_qa_filename(root, method, det=None, slit=None, prefix=None, mode=None, out_dir=None)[source]
Generate the filename for the QA file from the input parameters.
- Parameters:
root (
str) – Root name for the output filemethod (
str) – Describes the QA routinedet (
str|None) – The name of the detector or mosaic (e.g., DET01)prefix (
str|None) – Start the name of the QA file (used for multiple-PNG PCA plots)mode (
str|None) – Additional differentiating information (e.g.,gloablvslocalflexure correction)
- Return type:
- Returns:
Output filename