Skip to content

Commit

Permalink
Address PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoRocchietti committed Dec 13, 2024
1 parent 5dd9817 commit a2f005c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/ts/observatory/control/remote_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,13 @@ def __init__(
)

@staticmethod
def _remote_name_to_attr_format(salobj_remote_name: str) -> str:
def _remote_name_to_attr_format(component_name: str) -> str:
"""Returns the remote name in a format compatible with Python object
attribute names.
Parameters
----------
salobj_remote_name: `str`
component_name: `str`
Name of the CSC with the same format as that used to initialize the
`salobj.Remotes`, e.g.; "MTMount" or "Hexapod:1".
Expand All @@ -335,7 +335,7 @@ def _remote_name_to_attr_format(salobj_remote_name: str) -> str:
underscore, e.g. "Hexapod:1" -> "hexapod_1" or "ATHexapod" ->
"athexapod".
"""
return salobj_remote_name.lower().replace(":", "_")
return component_name.lower().replace(":", "_")

def components_to_check(self) -> typing.List[str]:
"""Return components for which check is enabled.
Expand Down

0 comments on commit a2f005c

Please sign in to comment.