mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix(image_item): vrange added int for pydantic model check
This commit is contained in:
@ -20,7 +20,7 @@ class ImageItemConfig(ConnectionConfig):
|
|||||||
color_map: Optional[str] = Field("magma", description="The color map of the image.")
|
color_map: Optional[str] = Field("magma", description="The color map of the image.")
|
||||||
downsample: Optional[bool] = Field(True, description="Whether to downsample 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.")
|
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."
|
None, description="The range of the color bar. If None, the range is automatically set."
|
||||||
)
|
)
|
||||||
color_bar: Optional[Literal["simple", "full"]] = Field(
|
color_bar: Optional[Literal["simple", "full"]] = Field(
|
||||||
|
Reference in New Issue
Block a user