Coverage for qubalab/images/metadata/image_channel.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2025-01-31 11:24 +0000

1from dataclasses import dataclass 

2 

3 

4@dataclass(frozen=True) 

5class ImageChannel: 

6 """ 

7 Simple data class to store the name and the color of a channel of an image. 

8 

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]