1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
from __future__ import annotations
import boost_histogram as bh
import uhi.testing.indexing
class TestAccess1D(uhi.testing.indexing.Indexing1D[bh.Histogram]):
@classmethod
def make_histogram(cls) -> bh.Histogram:
return bh.Histogram(dict(cls.get_uhi()))
class TestAccess2D(uhi.testing.indexing.Indexing2D[bh.Histogram]):
@classmethod
def make_histogram(cls) -> bh.Histogram:
return bh.Histogram(dict(cls.get_uhi()))
class TestAccess3D(uhi.testing.indexing.Indexing3D[bh.Histogram]):
@classmethod
def make_histogram(cls) -> bh.Histogram:
return bh.Histogram(dict(cls.get_uhi()))
class TestAccessBHTag1D(TestAccess1D):
tag = bh.tag
class TestAccessBHTag2D(TestAccess2D):
tag = bh.tag
class TestAccessBHTag3D(TestAccess3D):
tag = bh.tag
|