zmq_url to zmq_port (#563)

* zmq_url to port

* lazy commit
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-09-27 14:02:03 -07:00
1 parent 1267045aed
commit 1f484661f2
7 files changed
+38 -35

No files matched your search

+4 -3
View File
@@ -209,10 +209,11 @@ class ViewerState:
self.log_filename = log_filename
if self.config.launch_bridge_server:
# start the viewer bridge server
zmq_port = int(self.config.zmq_url.split(":")[-1])
websocket_port = self.config.websocket_port
self.log_filename.parent.mkdir(exist_ok=True)
run_viewer_bridge_server_as_subprocess(zmq_port, websocket_port, log_filename=str(self.log_filename))
run_viewer_bridge_server_as_subprocess(
self.config.zmq_port, websocket_port, log_filename=str(self.log_filename)
)
# TODO(ethan): move this into the writer such that it's at the bottom
# of the logging stack and easy to see and click
# TODO(ethan): log the output of the viewer bridge server in a file where the training logs go
@@ -228,7 +229,7 @@ class ViewerState:
console.print(dev_open_viewer_instructions_string)
console.rule(characters="=")
console.line()
self.vis = Viewer(zmq_url=self.config.zmq_url)
self.vis = Viewer(zmq_port=self.config.zmq_port)
# viewer specific variables
self.prev_camera_matrix = None