Skip to content
Snippets Groups Projects
Commit 06313aca authored by Cain, Payton David's avatar Cain, Payton David
Browse files

specify encoding when writing stream

parent 8196df8e
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!82Add _pre_process method to MiniSeedInputClient
...@@ -78,7 +78,9 @@ class MiniSeedInputClient(object): ...@@ -78,7 +78,9 @@ class MiniSeedInputClient(object):
buf = io.BytesIO() buf = io.BytesIO()
streams = self._pre_process(stream) streams = self._pre_process(stream)
for stream in streams: for stream in streams:
stream.write(buf, format="MSEED", reclen=512) stream.write(
buf, encoding=self.encoding.upper(), format="MSEED", reclen=512
)
# send data # send data
self.socket.sendall(buf.getvalue()) self.socket.sendall(buf.getvalue())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment