mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-06 03:40:41 +02:00
fix(dynamic_pseudo): fix exec for py313
This commit is contained in:
parent
761498f51d
commit
74695dcb0a
@ -102,8 +102,9 @@ class ComputedSignal(SignalRO):
|
||||
method = method.replace(function_name, "user_compute_method")
|
||||
self._compute_method_str = method
|
||||
# pylint: disable=exec-used
|
||||
exec(method)
|
||||
self._compute_method = locals()["user_compute_method"]
|
||||
out = {}
|
||||
exec(method, out)
|
||||
self._compute_method = out["user_compute_method"]
|
||||
|
||||
@property
|
||||
def input_signals(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user