pyimcom.diagnostics.report
PyIMCOM diagnostic report base classes.
Classes
- ReportSection
Section of the validataion report.
- ValidationReport
An entire validation report, encompassing multiple sections.
Classes
Contains a report section. |
|
Contains the validation report. |
Module Contents
- class ReportSection(rpt)[source]
Contains a report section.
- Parameters:
rpt (pyimcom.diagnostics.report.ValidationReport) – The report that this section belongs to.
Notes
The build method can be redefined in inherited classes, but should keep the signature. The optional nblockmax is used to restrict to a maximum size nblockmax x nblockmax sub-mosaic (this is mostly used for testing if you want to see if your section compiles without waiting for everything to run).
- tex = Multiline-String[source]
Show Value
""" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% """
- class ValidationReport(fname, dstem, clear_all=False, tmp_dir=None)[source]
Contains the validation report.
- Parameters:
fname (str) – Block file name.
dstem (str) – Stem for output files.
clear_all (bool, optional) – Removes existing files.
tmp_dir (str or str-like, optional) – If specified, a temporary directory (usually on-node storage) for temporary files.
- tex[source]
LaTeX source, dictionary with keys ‘preamble’, ‘head’, ‘body’, ‘appendix’, and ‘end’.
- Type:
dict of str
- suffix
Suffix for the input files.
- Type:
str
- LegacyName[source]
Legacy naming convention for the input files with _map.fits? Should be False in the future.
- Type:
bool
- datastem_from_dir[source]
Stem for datafiles, local from compilation directory (for inclusion in LaTeX).
- Type:
str
Notes
Reports that use tmp_dir should check if it exists. Also, they should clean up after themselves. This is different from dstem (which is for intended new output files).
- addsections(sectionlist)[source]
Add the list of sections to the report.
- Parameters:
sectionlist (list of pyimcom.diagnostics.report.ReportSection) – Sections to add to the report.
- Return type:
None
- compile(ntimes=2, warn_pdf_err=False)[source]
Compile the LaTeX into a PDF.
- Parameters:
ntimes (int, optional) – Number of times to compile (may have to run twice to get all the references).
warn_pdf_err (bool, optional) – If True, compilation failures result in a warning. If False (default), result in an exception.
- Return type:
None