Skip to content

Commit

Permalink
BUG: Add missing parameters
Browse files Browse the repository at this point in the history
Update set_layer_visibility and set_image_component_visibility to include
missing parameters.
  • Loading branch information
bnmajor committed Dec 8, 2023
1 parent a461453 commit c509c4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions itkwidgets/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ async def get_image_color_range_bounds(self):
return await self.viewer_rpc.itk_viewer.getImageColorRangeBounds()

@fetch_value
def set_image_component_visibility(self, visibility: bool):
self.viewer_rpc.itk_viewer.setImageComponentVisibility(visibility)
def set_image_component_visibility(self, visibility: bool, component: int):
self.viewer_rpc.itk_viewer.setImageComponentVisibility(visibility, component)
@fetch_value
async def get_image_component_visibility(self, component: int):
return await self.viewer_rpc.itk_viewer.getImageComponentVisibility(component)
Expand Down Expand Up @@ -386,8 +386,8 @@ async def get_layer_names(self):
return await self.viewer_rpc.itk_viewer.getLayerNames()

@fetch_value
def set_layer_visibility(self, visible: bool):
self.viewer_rpc.itk_viewer.setLayerVisibility(visible)
def set_layer_visibility(self, visible: bool, name: str):
self.viewer_rpc.itk_viewer.setLayerVisibility(visible, name)
@fetch_value
async def get_layer_visibility(self, name: str):
return await self.viewer_rpc.itk_viewer.getLayerVisibility(name)
Expand Down

0 comments on commit c509c4d

Please sign in to comment.