Skip to content

Commit 0614c9c

Browse files
committed
bug_fix: Fixed bug with Camera.py ZMQ communication
Changed encoding of data to utf-8 to allow communication with camera_server.py and PyCapture2_camera_server.py. This commit should be checked for compatibility with BIAS and unBIASed. DSB
1 parent 26304b9 commit 0614c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def transition_to_buffered(self, device_name, h5file, initial_values, fresh):
255255
h5file = shared_drive.path_to_agnostic(h5file)
256256
if not self.use_zmq:
257257
return self.transition_to_buffered_sockets(h5file,self.host, self.port)
258-
response = zprocess.zmq_get_raw(self.port, self.host, data=h5file)
258+
response = zprocess.zmq_get_raw(self.port, self.host, data=h5file.encode('utf-8'))
259259
if response != 'ok':
260260
raise Exception('invalid response from server: ' + str(response))
261261
response = zprocess.zmq_get_raw(self.port, self.host, timeout = 10)

0 commit comments

Comments
 (0)