From 69e186ecf3234c8b4f2012b5b9d6e0a717d45662 Mon Sep 17 00:00:00 2001 From: Furkan Date: Sat, 12 Oct 2024 13:43:18 +0300 Subject: [PATCH] refactor: remove unnecessary logs in `DAQJobN1081B` and add prefix to csv keys --- src/daq/caen/n1081b.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/daq/caen/n1081b.py b/src/daq/caen/n1081b.py index 433ff87..64c80f0 100644 --- a/src/daq/caen/n1081b.py +++ b/src/daq/caen/n1081b.py @@ -76,20 +76,14 @@ def _poll_sections(self): self._logger.info(f"No counters in section {section}") continue - self._logger.info(f"For section {section}") - for counter in data["counters"]: - self._logger.info(f"Lemo {counter['lemo']}: {counter['value']}") - self._send_store_message(data) - self._logger.info("===") - def _send_store_message(self, data: dict): self.message_out.put( DAQJobMessageStore( store_config=self.config.store_config, daq_job=self, - keys=[x["lemo"] for x in data["counters"]], + keys=["lemo_" + x["lemo"] for x in data["counters"]], data=[[x["value"] for x in data["counters"]]], ) )