physt.testing package¶
Submodules¶
physt.testing.strategies module¶
- physt.testing.strategies.bins(nbins: int | None = None) SearchStrategy[ndarray]¶
- physt.testing.strategies.histograms_1d() SearchStrategy¶
Hypothesis strategy to generate 1D histograms.
- physt.testing.strategies.histograms_nd() SearchStrategy¶
Module contents¶
Support testing.
More detailed comparisons of histograms mostly for unit testing.
- physt.testing.assert_histograms_equal(left: HistogramBase, right: HistogramBase, *, check_dtype: bool = True, check_frequencies: bool = True, check_bins: bool = True, check_binnings: bool = True, check_metadata: bool = True, rtol: float = 1e-07, atol: float = 0) None¶
Helper function to compare two histograms.
- physt.testing.assert_optional_array_equal(actual: ndarray | None, desired: ndarray | None, **kwargs) None¶
Assert the arrays are equal or both None (helper for out tests).