refactor: cleanup sim module namespace; closes #80
This commit is contained in:
parent
b0351a210e
commit
fa32b4234b
@ -88,16 +88,7 @@ class SimulatedDataBase(ABC):
|
||||
- update_sim_state: update the simulated state of the device
|
||||
"""
|
||||
|
||||
# USER_ACCESS = ["params", "select_model", "get_models", "show_all"]
|
||||
# TODO remove
|
||||
USER_ACCESS = [
|
||||
"params",
|
||||
"select_model",
|
||||
"get_models",
|
||||
"show_all",
|
||||
"sim_select_model",
|
||||
"sim_params",
|
||||
]
|
||||
USER_ACCESS = ["params", "select_model", "get_models", "show_all"]
|
||||
|
||||
def __init__(self, *args, parent=None, **kwargs) -> None:
|
||||
"""
|
||||
@ -131,23 +122,6 @@ class SimulatedDataBase(ABC):
|
||||
return method(*args, **kwargs)
|
||||
raise SimulatedDataException(f"Method {method} is not available for {self.parent.name}")
|
||||
|
||||
# TODO remove after refactoring code in main
|
||||
def sim_select_model(self, model: str) -> None:
|
||||
"""Select the active simulation model."""
|
||||
self.select_model(model)
|
||||
|
||||
@property
|
||||
def sim_params(self) -> None:
|
||||
"""Set the parameters for the active simulation model."""
|
||||
return self.params
|
||||
|
||||
@sim_params.setter
|
||||
def sim_params(self, params: dict):
|
||||
"""Set the parameters for the active simulation model."""
|
||||
self.params = params
|
||||
|
||||
# TODO remove after refactoring code in main
|
||||
|
||||
def select_model(self, model: str) -> None:
|
||||
"""
|
||||
Method to select the active simulation model.
|
||||
|
@ -42,7 +42,7 @@ class SimPositioner(Device, PositionerBase):
|
||||
"""
|
||||
|
||||
# Specify which attributes are accessible via BEC client
|
||||
USER_ACCESS = ["sim", "readback", "dummy_controller", "registered_proxies"]
|
||||
USER_ACCESS = ["sim", "readback", "registered_proxies"]
|
||||
|
||||
sim_cls = SimulatedPositioner
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user