@@ -27,6 +27,8 @@ class CziChannelInfo:
2727 czisource (Union[str, os.PathLike[str], Box]): The source of the CZI image data.
2828 names (List[str]): List of channel names.
2929 dyes (List[str]): List of dye names.
30+ dyes_short (List[str]): List of short dye names.
31+ channel_descriptions (List[str]): List of channel descriptions.
3032 colors (List[str]): List of channel colors.
3133 clims (List[List[float]]): List of channel intensity limits.
3234 gamma (List[float]): List of gamma values for each channel.
@@ -48,6 +50,8 @@ class CziChannelInfo:
4850 czisource: Union[str, os.PathLike[str], Box]
4951 names: List[str] = field(init=False, default_factory=lambda: [])
5052 dyes: List[str] = field(init=False, default_factory=lambda: [])
53+ dyes_short: List[str] = field(init=False, default_factory=lambda: [])
54+ channel_descriptions: List[str] = field(init=False, default_factory=lambda: [])
5155 colors: List[str] = field(init=False, default_factory=lambda: [])
5256 clims: List[List[float]] = field(init=False, default_factory=lambda: [])
5357 gamma: List[float] = field(init=False, default_factory=lambda: [])
@@ -131,8 +135,18 @@ def _get_channel_info(self, display: Box):
131135 if display is not None:
132136 (
133137 self.dyes.append("Dye-CH1")
138+ if display.Name is None
139+ else self.dyes.append(display.Name)
140+ )
141+ (
142+ self.dyes_short.append("Dye-CH1")
143+ if display.ShortName is None
144+ else self.dyes_short.append(display.ShortName)
145+ )
146+ (
147+ self.channel_descriptions.append("")
134148 if display.ShortName is None
135- else self.dyes .append(display.ShortName )
149+ else self.channel_descriptions .append(display.Description )
136150 )
137151 (
138152 self.colors.append("#80808000")
0 commit comments