Skip to content

Commit

Permalink
Make OPUSControl.COMMANDS a tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdewar committed Dec 4, 2023
1 parent 8b6c77d commit 1f66dbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions finesse/gui/opus_view.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Panel and widgets related to the control of the OPUS interferometer."""
import logging
import weakref
from collections.abc import Sequence
from functools import partial

from pubsub import pub
Expand All @@ -23,10 +24,10 @@
class OPUSControl(DevicePanel):
"""Class that monitors and controls the OPUS interferometer."""

COMMANDS = ["status", "cancel", "stop", "start"]
COMMANDS = ("status", "cancel", "stop", "start")
"""The default commands shown for interacting with OPUS."""

def __init__(self, commands: list[str] = COMMANDS) -> None:
def __init__(self, commands: Sequence[str] = COMMANDS) -> None:
"""Create the widgets to monitor and control the OPUS interferometer."""
super().__init__(OPUS_TOPIC, "OPUS client view")

Expand Down

0 comments on commit 1f66dbd

Please sign in to comment.