Extraction documentation
Automatic documentation for the xtraction
- class DMT.extraction.docu_xtraction.DocuXtraction(extraction, gui_extraction=None, dir_destination=None)[source]
Bases:
object
This class implements routines for generating automated documentation of a Xtraction object. Xtraction objects represent a full parameter extraction flow.
- Parameters:
- extraction
DMT.extraction.extraction.Xtraction
The Xtraction object for which the documentation shall be generated.
- gui_extraction
DMT.extraction.gui.XtractionGUI
The GUI in which the Xtraction object is being visualized.
- dir_destination
str
, Path-likeobject
The destination path for writing the documentation to.
- extraction
- append(content, file_name, mark=None, mark_in_file='documentation.tex')[source]
Adds the content to a file and also start the build chain for self.build.
Ideally content is a
- append_parameter_glossaries(parameters)[source]
Append model parameters to the parameter glossary defined in parameters.tex, if they are not already present
- Parameters:
- parameters
McParameterCollection
, [McParameter
] A list of McParameter objects or an McParameterCollection which shall be appended to parameters.tex
- parameters
- copy_template(dir_destination=None, dir_source=None)[source]
Copies the autodoc template in DMT_extraction/autodoc_template to the destination folder.
- create_subfiles()[source]
Creates the different Tex subfiles (https://ctan.org/pkg/subfiles) for the automated Xtraction tex documentation. For each XStep object in the Xtraction object:
create a subsection
print the extraction step description
print the plots related to the XStep
print the optimized modelcard parameters