Coverage for qubalab / images / metadata / image_channel.py: 100%
5 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-02-16 17:05 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-02-16 17:05 +0000
1from dataclasses import dataclass
4@dataclass(frozen=True)
5class ImageChannel:
6 """
7 Simple data class to store the name and the color of a channel of an image.
9 :param name: the name of the channel
10 :param color: the RGB color of the channel, with each component between 0 and 1
11 """
12 name: str
13 color: tuple[float, float, float]