diff --git a/eos/reduction_e2h.py b/eos/reduction_e2h.py index 48c9f63..43bef19 100644 --- a/eos/reduction_e2h.py +++ b/eos/reduction_e2h.py @@ -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)