Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bengineerd committed Jan 8, 2025
1 parent 2f19ffc commit 405c26b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions python/pyrogue/_Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 405c26b

Please sign in to comment.