Skip to content

Commit 78700d7

Browse files
committed
MAINT: Use camel case for variables
1 parent ad33845 commit 78700d7

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

itkwidgets/viewer.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,14 @@ async def get_axes_enabled(self) -> asyncio.Future | bool:
366366
return await self.viewer_rpc.itk_viewer.getAxesEnabled()
367367

368368
@fetch_value
369-
def set_background_color(self, bgColor: List[float]) -> None:
369+
def set_background_color(self, bg_color: List[float]) -> None:
370370
"""Set the background color for the viewer. Queue the function to be
371371
run in the background thread once the plugin API is available.
372372
373-
:param bgColor: A list of floats [r, g, b, a]
374-
:type bgColor: List[float]
373+
:param bg_color: A list of floats [r, g, b, a]
374+
:type bg_color: List[float]
375375
"""
376-
self.queue_request('setBackgroundColor', bgColor)
376+
self.queue_request('setBackgroundColor', bg_color)
377377
@fetch_value
378378
async def get_background_color(self) -> asyncio.Future | List[float]:
379379
"""Get the current background color.
@@ -481,15 +481,15 @@ async def get_image_blend_mode(self) -> asyncio.Future | str:
481481
return await self.viewer_rpc.itk_viewer.getImageBlendMode()
482482

483483
@fetch_value
484-
def set_image_color_map(self, colorMap: str) -> None:
484+
def set_image_color_map(self, color_map: str) -> None:
485485
"""Set the color map for the current component/channel. Queue the
486486
function to be run in the background thread once the plugin API is
487487
available.
488488
489-
:param colorMap: Color map for the current image. default: 'Grayscale'
490-
:type colorMap: str
489+
:param color_map: Color map for the current image. default: 'Grayscale'
490+
:type color_map: str
491491
"""
492-
self.queue_request('setImageColorMap', colorMap)
492+
self.queue_request('setImageColorMap', color_map)
493493
@fetch_value
494494
async def get_image_color_map(self) -> asyncio.Future | str:
495495
"""Get the color map for the current component/channel.
@@ -1032,14 +1032,14 @@ async def get_label_image_label_names(self) -> asyncio.Future | List[str]:
10321032
return await self.viewer_rpc.itk_viewer.getLabelImageLabelNames()
10331033

10341034
@fetch_value
1035-
def set_label_image_lookup_table(self, lookupTable: str) -> None:
1035+
def set_label_image_lookup_table(self, lookup_table: str) -> None:
10361036
"""Set the lookup table for the label map. Queue the function to be run
10371037
in the background thread once the plugin API is available.
10381038
1039-
:param lookupTable: Label map lookup table. default: 'glasbey'
1040-
:type lookupTable: str
1039+
:param lookup_table: Label map lookup table. default: 'glasbey'
1040+
:type lookup_table: str
10411041
"""
1042-
self.queue_request('setLabelImageLookupTable', lookupTable)
1042+
self.queue_request('setLabelImageLookupTable', lookup_table)
10431043
@fetch_value
10441044
async def get_label_image_lookup_table(self) -> asyncio.Future | str:
10451045
"""Get the lookup table for the label map.
@@ -1124,36 +1124,36 @@ def get_loaded_image_names(self) -> List[str]:
11241124
return list(self.stores.keys())
11251125

11261126
@fetch_value
1127-
def add_point_set(self, pointSet: PointSet) -> None:
1127+
def add_point_set(self, point_set: PointSet) -> None:
11281128
"""Add a point set to the visualization. Queue the function to be run
11291129
in the background thread once the plugin API is available.
11301130
1131-
:param pointSet: An array of points to visualize.
1132-
:type pointSet: PointSet
1131+
:param point_set: An array of points to visualize.
1132+
:type point_set: PointSet
11331133
"""
1134-
pointSet = _get_viewer_point_set(pointSet)
1135-
self.queue_request('addPointSet', pointSet)
1134+
point_set = _get_viewer_point_set(point_set)
1135+
self.queue_request('addPointSet', point_set)
11361136
@fetch_value
1137-
def set_point_set(self, pointSet: PointSet) -> None:
1137+
def set_point_set(self, point_set: PointSet) -> None:
11381138
"""Set the point set to the visualization. Queue the function to be run
11391139
in the background thread once the plugin API is available.
11401140
1141-
:param pointSet: An array of points to visualize.
1142-
:type pointSet: PointSet
1141+
:param point_set: An array of points to visualize.
1142+
:type point_set: PointSet
11431143
"""
1144-
pointSet = _get_viewer_point_set(pointSet)
1145-
self.queue_request('setPointSets', pointSet)
1144+
point_set = _get_viewer_point_set(point_set)
1145+
self.queue_request('setPointSets', point_set)
11461146

11471147
@fetch_value
1148-
def set_rendering_view_container_style(self, containerStyle: Style) -> None:
1148+
def set_rendering_view_container_style(self, container_style: Style) -> None:
11491149
"""Set the CSS style for the rendering view `div`'s. Queue the function
11501150
to be run in the background thread once the plugin API is available.
11511151
1152-
:param containerStyle: A dict of string keys and sting values
1152+
:param container_style: A dict of string keys and sting values
11531153
representing the desired CSS styling.
1154-
:type containerStyle: Style
1154+
:type container_style: Style
11551155
"""
1156-
self.queue_request('setRenderingViewContainerStyle', containerStyle)
1156+
self.queue_request('setRenderingViewContainerStyle', container_style)
11571157
@fetch_value
11581158
async def get_rendering_view_container_style(self) -> Style:
11591159
"""Get the CSS style for the rendering view `div`'s.

0 commit comments

Comments
 (0)