Skip to content

Commit

Permalink
refactor: remove unnecessary logs in DAQJobN1081B and add prefix to…
Browse files Browse the repository at this point in the history
… csv keys
  • Loading branch information
furkan-bilgin committed Oct 12, 2024
1 parent 0b416f0 commit 69e186e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/daq/caen/n1081b.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]],
)
)

0 comments on commit 69e186e

Please sign in to comment.