Remove --kafka for e2h
Unit Testing / test (3.11) (push) Successful in 49s
Unit Testing / test (3.10) (push) Successful in 54s
Unit Testing / test (3.8) (push) Successful in 52s
Unit Testing / test (3.12) (push) Successful in 57s
Unit Testing / test (3.9) (push) Successful in 53s

This commit is contained in:
2026-07-09 10:45:35 +02:00
parent 6cc008f841
commit 9c1b469f2f
+1 -8
View File
@@ -131,11 +131,7 @@ class E2HReduction:
# safe to image file if not auto-updating graph
plt.savefig(f'e2h_{self.config.reduction.plot}.png', dpi=300)
if self.config.reduction.kafka:
from .kafka_serializer import ESSSerializer
self.serializer = ESSSerializer()
self.fig.canvas.mpl_connect('close_event', self.serializer.end_command_thread)
self.serializer.start_command_thread()
self.serializer.send(self.projection)
raise RuntimeError("--kafka not implemented for events2histogram, use eos nicos script")
if self.config.reduction.update:
self.timer = self.fig.canvas.new_timer(1000)
self.timer.add_callback(self.update)
@@ -313,6 +309,3 @@ class E2HReduction:
self.projection.update_plot()
plt.suptitle(self.create_title())
plt.draw()
if self.config.reduction.kafka:
self.serializer.send(self.projection)