upxo.meshing.gbconformant.pipeline.results module
What a run produced, as tables, text, figures and files: the material of a run summary and report.
Everything here reads a PipelineState (a run that just finished, or one restored from its
run folder) and builds plain tables of (title, columns, rows), matplotlib figures, and the list
of files written. populate_report() puts the standard sections into a
upxo.reporting.ReportSession.
- class upxo.meshing.gbconformant.pipeline.results.Block(title: str, columns: list, rows: list)[source]
Bases:
objectA titled table.
- class upxo.meshing.gbconformant.pipeline.results.ResultFigure(key: 'str', title: 'str', figure: 'Any', note: 'str' = '')[source]
Bases:
object
- upxo.meshing.gbconformant.pipeline.results.stage_rows(state: PipelineState) list[list][source]
[stage, title, status, seconds]for every stage, in run order.
- upxo.meshing.gbconformant.pipeline.results.input_block(state: PipelineState) Block | None[source]
- upxo.meshing.gbconformant.pipeline.results.subset_block(state: PipelineState) Block | None[source]
- upxo.meshing.gbconformant.pipeline.results.cleaning_block(state: PipelineState) Block | None[source]
- upxo.meshing.gbconformant.pipeline.results.surface_block(state: PipelineState) Block | None[source]
- upxo.meshing.gbconformant.pipeline.results.mesh_block(state: PipelineState) Block | None[source]
- upxo.meshing.gbconformant.pipeline.results.tet_stage_block(state: PipelineState) Block | None[source]
- upxo.meshing.gbconformant.pipeline.results.export_block(state: PipelineState) Block | None[source]
- upxo.meshing.gbconformant.pipeline.results.boundary_block(state: PipelineState) Block | None[source]
The grain boundaries by kind: how many, how much area, how far apart in orientation.
- upxo.meshing.gbconformant.pipeline.results.timing_block(state: PipelineState) Block | None[source]
- upxo.meshing.gbconformant.pipeline.results.stage_note(state: PipelineState, stage_id: str) str[source]
A line of key numbers for a stage that ran (
""when it has none to show).
- upxo.meshing.gbconformant.pipeline.results.stage_summary_block(state: PipelineState) Block | None[source]
One table of every stage that has a status: how it ended, how long it took, its key numbers.
- upxo.meshing.gbconformant.pipeline.results.summary_blocks(state: PipelineState) list[Block][source]
- upxo.meshing.gbconformant.pipeline.results.summary_text(state: PipelineState) str[source]
- upxo.meshing.gbconformant.pipeline.results.settings_block(state: PipelineState) Block[source]
- upxo.meshing.gbconformant.pipeline.results.quality_blocks(state: PipelineState) list[Block][source]
- upxo.meshing.gbconformant.pipeline.results.region_data(state: PipelineState) dict | None[source]
The result of the region-quality stage (
Noneuntil it has run).
- upxo.meshing.gbconformant.pipeline.results.region_blocks(state: PipelineState) list[Block][source]
Quality of the elements at the grain boundary surface, junction lines and junction points, by layer.
- upxo.meshing.gbconformant.pipeline.results.region_flat_block(state: PipelineState) Block | None[source]
Every statistic of every region and layer, for a spreadsheet.
- upxo.meshing.gbconformant.pipeline.results.region_result_figures(state: PipelineState) list[ResultFigure][source]
- upxo.meshing.gbconformant.pipeline.results.quality_figures(state: PipelineState) list[ResultFigure][source]
- upxo.meshing.gbconformant.pipeline.results.quality_data(state: PipelineState, top: int = 10)[source]
quality_report()of the verified tetrahedra (Nonebefore they exist).
- upxo.meshing.gbconformant.pipeline.results.quality_report_blocks(state: PipelineState) list[Block][source]
The mesh against the usual limits, the aspect ratio, and the worst grains.
- upxo.meshing.gbconformant.pipeline.results.quality_grain_table(state: PipelineState) Block | None[source]
Every grain’s quality, for a spreadsheet.
- upxo.meshing.gbconformant.pipeline.results.fidelity_blocks(state: PipelineState) list[Block][source]
The before/after tables (when the comparison ran), the per-feature measures and the merge log.
- upxo.meshing.gbconformant.pipeline.results.grain_data(state: PipelineState)[source]
Per-feature fidelity (volume, boundary area, neighbours, aspect ratio), or
Nonewithout a mesh or an FM-steel input.
- upxo.meshing.gbconformant.pipeline.results.grain_table(state: PipelineState) Block | None[source]
Every feature’s measures, for a spreadsheet.
- upxo.meshing.gbconformant.pipeline.results.grain_blocks(state: PipelineState) list[Block][source]
- upxo.meshing.gbconformant.pipeline.results.merge_data(state: PipelineState)[source]
The merge log of the identity rule,
{'unavailable': why}for a symmetry it cannot treat,Nonewithout a merge.
- upxo.meshing.gbconformant.pipeline.results.merge_blocks(state: PipelineState) list[Block][source]
- upxo.meshing.gbconformant.pipeline.results.merge_table(state: PipelineState) Block | None[source]
- upxo.meshing.gbconformant.pipeline.results.fidelity_figure(state: PipelineState, which: str) ResultFigure[source]
One of
FIDELITY_PLOTS, drawn for the chosen pair with the plot settings of the run.
- upxo.meshing.gbconformant.pipeline.results.grain_data_ok(state: PipelineState) bool[source]
- upxo.meshing.gbconformant.pipeline.results.fidelity_figures(state: PipelineState) list[ResultFigure][source]
Every fidelity plot that can be drawn for this run.
- upxo.meshing.gbconformant.pipeline.results.deliverables(state: PipelineState) list[dict][source]
The files and folders a run wrote:
kind,label,path,exists,bytes.
- upxo.meshing.gbconformant.pipeline.results.deliverables_block(state: PipelineState) Block[source]
- upxo.meshing.gbconformant.pipeline.results.report_session(state: PipelineState, folder: Path | None = None)[source]
The run’s report (continued if it already has entries).
- upxo.meshing.gbconformant.pipeline.results.populate_report(session, state: PipelineState, sections=('summary', 'settings', 'quality', 'fidelity', 'deliverables'), *, figures: bool = True, replace: bool = True) list[str][source]
Put the standard sections into
session; returns the sections added.With
replacea section the report already holds is rebuilt instead of repeated.