Skip to content

Commit

Permalink
cosmetic changes after pylint analysis: rm traing spaces, rm unused i…
Browse files Browse the repository at this point in the history
…mport gevent, changing import order
  • Loading branch information
Costin committed Jan 16, 2024
1 parent 113b623 commit 019f8bd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions mxcubecore/HardwareObjects/TangoShutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,18 @@
<values>{"open": "OPEN", "cloded": "CLOSED", "DISABLE" : "DISABLE"}</values>
</object>
In this example the <values> tag contains a json dictionary that maps spectific tango shutter states to the
In this example the <values> tag contains a json dictionary that maps spectific tango shutter states to the
convantional states defined in the TangoShutter Class. This tag is not necessay in cases where the tango shutter states
are all covered by the TangoShuter class conventional states.
are all covered by the TangoShuter class conventional states.
"""

import json
from enum import Enum, unique
import gevent
from mxcubecore.HardwareObjects.abstract.AbstractShutter import AbstractShutter
import json
from mxcubecore.BaseHardwareObjects import HardwareObjectState

__copyright__ = """ Copyright © 2023 by the MXCuBE collaboration """
__license__ = "LGPLv3+"


@unique
class TangoShutterStates(Enum):
"""Shutter states definitions."""
Expand All @@ -61,7 +58,6 @@ class TangoShutterStates(Enum):
UNKNOWN = HardwareObjectState.UNKNOWN, "RUNNING"
FAULT = HardwareObjectState.WARNING, "FAULT"


class TangoShutter(AbstractShutter):
"""TANGO implementation of AbstractShutter"""

Expand Down

0 comments on commit 019f8bd

Please sign in to comment.