correctionlib.convert.from_histogram

correctionlib.convert.from_histogram(hist: PlottableHistogram, axis_names: List[str] | None = None, flow: Binning | MultiBinning | Category | Formula | FormulaRef | Transform | HashPRNG | float | Literal['clamp', 'error'] | None = 'error') Correction

Read any object with PlottableHistogram interface protocol

Interface as defined in https://github.com/scikit-hep/uhi/blob/v0.1.1/src/uhi/typing/plottable.py