_ChannelSummaryMixin

class pyhf.mixins._ChannelSummaryMixin(*args: Any, **kwargs: Sequence[pyhf.typing.Channel])[source]

Bases: object

A mixin that provides summary data of the provided channels.

This mixin will forward all other information to other classes defined in the Child class.

Parameters:

**channels – A list of channels to provide summary information about. Follows the defs.json#/definitions/channel schema.

__init__(*args: Any, **kwargs: Sequence[pyhf.typing.Channel])[source]

Attributes

channel_nbins

Dictionary mapping channel name to number of bins in the channel.

channel_slices

Dictionary mapping channel name to the bin slices in the model.

channels

Ordered list of channel names in the model.

modifiers

Ordered list of pairs of modifier name/type in the model.

samples

Ordered list of sample names in the model.

Methods