Fix roi_signal after AsyncSignal refactoring #98

Merged
appel_c merged 2 commits from fix/async_signal_refactoring into main 2025-10-22 14:57:07 +02:00
2 changed files with 2 additions and 10 deletions

View File

@@ -209,15 +209,7 @@ class IDSCamera(PSIDeviceBase):
else:
data = image.data * self.mask
n_channels = 1
self.roi_signal.put(
{
self.roi_signal.name: {
"value": np.sum(data)
/ (np.sum(self.mask) * n_channels), # TODO could be optimized
"timestamp": time.time(),
}
}
)
self.roi_signal.put(np.sum(data) / (np.sum(self.mask) * n_channels))
if __name__ == "__main__":

View File

@@ -16,7 +16,7 @@ dependencies = [
"bec_ipython_client",
"bec_lib",
"bec_server",
"ophyd_devices",
"ophyd_devices~=1.29",
appel_c marked this conversation as resolved Outdated

what's the reason for the commented dependency? Was it put there before ophyd_devices was released?

what's the reason for the commented dependency? Was it put there before ophyd_devices was released?

yes, also outdated now. Once "https://github.com/bec-project/ophyd_devices/pull/138" is merged, the version needs to be adjusted.

yes, also outdated now. Once "https://github.com/bec-project/ophyd_devices/pull/138" is merged, the version needs to be adjusted.
"std_daq_client",
"jfjoch-client",
"rich",