Skip to content

Commit 6345118

Browse files
authored
rename to kafka_dae_control
1 parent 87eb028 commit 6345118

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Borzoi
1+
# kafka_dae_control
22

3-
Borzoi like running. This listens to ISISDAE's start/stop times and pushes start/stop Flatbuffer blobs to Kafka accordingly.
3+
This is a FastCS IOC responsible for communicating with the acquisition hardware and pushing start/stop Flatbuffer blobs to Kafka accordingly.

main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from streaming_data_types.run_start_pl72 import serialise_pl72
1212
from streaming_data_types.run_stop_6s4t import serialise_6s4t
1313

14-
logger = logging.getLogger("borzoi")
14+
logger = logging.getLogger("KDAECTRL")
1515
logging.basicConfig(level=logging.INFO)
1616

1717

@@ -181,8 +181,8 @@ def main() -> None:
181181
if prefix is None or instrument_name is None:
182182
raise ValueError("prefix or instrument name not set - have you run config_env.bat?")
183183

184-
broker = os.environ.get("BORZOI_KAFKA_BROKER", "livedata.isis.cclrc.ac.uk:31092")
185-
topic = os.environ.get("BORZOI_TOPIC", f"{instrument_name}_runInfo")
184+
broker = os.environ.get("KDAECTRL_KAFKA_BROKER", "livedata.isis.cclrc.ac.uk:31092")
185+
topic = os.environ.get("KDAECTRL_TOPIC", f"{instrument_name}_runInfo")
186186
logger.info("setting up producer")
187187
loop = asyncio.new_event_loop()
188188
producer = loop.run_until_complete(set_up_producer(broker))

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
2-
name = "borzoi"
2+
name = "kafka_dae_control"
33
version = "0.1.0"
4-
description = "Start and stop runs."
4+
description = "Data streaming software for communicating with the detector hardware and start and stop kafka runs."
55
readme = "README.md"
66
requires-python = ">=3.11"
77
dependencies = [

0 commit comments

Comments
 (0)