"vscode:/vscode.git/clone" did not exist on "35fb8d4d037080a5bbd245cf7064b70dc93dd2f6"
Commit 5d981d57 authored by ScottSWu's avatar ScottSWu
Browse files

Fix division changing dtype to float in python3

parent afdcf7d4
...@@ -92,7 +92,7 @@ def main(_): ...@@ -92,7 +92,7 @@ def main(_):
int_codes = np.asarray([x.astype(np.int8) for x in results]) int_codes = np.asarray([x.astype(np.int8) for x in results])
# Convert int codes to binary. # Convert int codes to binary.
int_codes = (int_codes + 1)/2 int_codes = (int_codes + 1)//2
export = np.packbits(int_codes.reshape(-1)) export = np.packbits(int_codes.reshape(-1))
output = io.BytesIO() output = io.BytesIO()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment