Skip to content
Snippets Groups Projects
Commit e4d1464f authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

fix type issue for writing files with numpy.savetxt

The file should be opened in binary mode.
parent 8be6e430
No related branches found
No related tags found
1 merge request!118type fixes
......@@ -51,7 +51,7 @@ class DumpSeriesSink(TSSink):
endpoint=False,
)
out = np.vstack([ts, data]).T
with open(self.fname, "a") as f:
with open(self.fname, "ab") as f:
np.savetxt(f, out)
def internal(self) -> None:
......
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