From 405c26b073caac80c5ef17cc34645158e43d20a3 Mon Sep 17 00:00:00 2001 From: Benjamin Reese Date: Wed, 8 Jan 2025 14:35:06 -0800 Subject: [PATCH] Revert changes --- python/pyrogue/_Device.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/pyrogue/_Device.py b/python/pyrogue/_Device.py index 3962bb113..cc0bde492 100644 --- a/python/pyrogue/_Device.py +++ b/python/pyrogue/_Device.py @@ -31,8 +31,6 @@ def __init__(self, *, enabled, deps=None): groups='Enable', disp={False: 'False', True: 'True', 'parent': 'ParentFalse', 'deps': 'ExtDepFalse'}) - self.allowed_values = {True, False, 'parent', 'deps'} - if deps is None: self._deps = [] self._depDis = False @@ -99,10 +97,6 @@ def set(self, value, write=True, index=-1): ------- """ - if value not in self.allowed_values: - raise pr.VariableError( - f'Error calling {self.path}.set({value=}) - value must be one of {self.allowed_values}') - if value != 'parent' and value != 'deps': old = self.value()