From b8f796fd3fcc15641e8fc6a3ca75c344ce90fc45 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Thu, 27 Jun 2024 11:15:28 +0200 Subject: [PATCH] fix(image_item): vrange added int for pydantic model check --- bec_widgets/widgets/figure/plots/image/image_item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bec_widgets/widgets/figure/plots/image/image_item.py b/bec_widgets/widgets/figure/plots/image/image_item.py index 0746caae..374f732f 100644 --- a/bec_widgets/widgets/figure/plots/image/image_item.py +++ b/bec_widgets/widgets/figure/plots/image/image_item.py @@ -20,7 +20,7 @@ class ImageItemConfig(ConnectionConfig): color_map: Optional[str] = Field("magma", description="The color map of the image.") downsample: Optional[bool] = Field(True, description="Whether to downsample the image.") opacity: Optional[float] = Field(1.0, description="The opacity of the image.") - vrange: Optional[tuple[float, float]] = Field( + vrange: Optional[tuple[float | int, float | int]] = Field( None, description="The range of the color bar. If None, the range is automatically set." ) color_bar: Optional[Literal["simple", "full"]] = Field(