pyimcom.diagnostics.layer_diagnostics

Report section for layer diagnostics.

Classes

LayerReport

Layer report section.

Classes

LayerReport

The layer section of the report.

Functions

_percentiles_and_delete(arr, pctiles, target, delete_arr)

Sorts/constructs percentiles from a memmapped array, then (optionally) deletes it.

Module Contents

_percentiles_and_delete(arr, pctiles, target, delete_arr)[source]

Sorts/constructs percentiles from a memmapped array, then (optionally) deletes it.

Parameters:
  • arr (np.memmap) – The memory-mapped array.

  • pctiles (array-like) – The percentiles to generate.

  • target (np.ndarray) – The array to save the percentiles.

  • delete_arr (bool) – Whether to delete the array when done.

Return type:

None

class LayerReport(rpt)[source]

Bases: pyimcom.diagnostics.report.ReportSection

The layer section of the report.

Inherits from pyimcom.diagnostics.report.ReportSection. Overrides build.

build(nblockmax=100)[source]

Generates the LaTeX for the statistical report on layers.

Parameters:

nblockmax (int, optional) – The maximum number of blocks on a side to allow.

Return type:

None