Li Jiang 42b27b9a9d
Add isort (#2265)
* Add isort

* Apply isort on py files

* Fix circular import

* Fix format for notebooks

* Fix format

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-05 02:26:06 +00:00

14 lines
403 B
Python

import zmq
from autogencap.Actor import Actor
from autogencap.Constants import Termination_Topic
from autogencap.DebugLog import Debug
class AGActor(Actor):
def start(self, context: zmq.Context):
super().start(context)
str_topic = Termination_Topic
Debug(self.actor_name, f"subscribe to: {str_topic}")
self._socket.setsockopt_string(zmq.SUBSCRIBE, f"{str_topic}")