Skip to content

Commit

Permalink
Add KAFKA code back in, commented out, in case needed later.
Browse files Browse the repository at this point in the history
  • Loading branch information
misha committed Dec 12, 2023
1 parent 486e5f5 commit 5eab3a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hercules/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ def __init__(self, controller, py_sims, input_dict):

# TODO: Store other things
self.use_dash_frontend = self.helics_config_dict["use_dash_frontend"]
# self.KAFKA = self.helics_config_dict["KAFKA"]

# # TODO Copied direct from control_center.py but not actually ready yet
# if self.KAFKA:
# from dav_kafka_python.configuration import Configuration
# from dav_kafka_python.producer import PythonProducer
# # Kafka topic :
# self.topic = self.helics_config_dict["KAFKA_TOPIC"]
# print("KAFKA topic", self.topic)
# config = Configuration(env_path='./.env')
# self.python_producer = PythonProducer(config)
# self.python_producer.connect()

# AMR wind files
# Grab py sim details
Expand Down

0 comments on commit 5eab3a1

Please sign in to comment.