This commit is contained in:
Erik Frojdh
2019-06-12 10:41:50 +02:00
parent 1fed3553b9
commit 55229f77a3
7 changed files with 14 additions and 64 deletions

View File

@ -1,9 +1,7 @@
from .decorators import error_handling, property_error_handling
class Register:
def __init__(self, detector):
self._detector = detector
@property_error_handling
def __getitem__(self, key):
return self._detector._api.readRegister(key)