Skip to content

Commit 87ca591

Browse files
rprosperoDrPaulSharp
authored andcommitted
More tests for quantities
1 parent 79c973f commit 87ca591

11 files changed

Lines changed: 18 additions & 622 deletions

sasdata/quantities/math_operations_test.py

Lines changed: 0 additions & 152 deletions
This file was deleted.

sasdata/quantities/numerical_encoding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ def numerical_encode(obj: int | float | np.ndarray | coo_matrix | coo_array | cs
1515

1616
elif isinstance(obj, float):
1717
return {"type": "float",
18-
"value": base64.b64encode(bytearray(struct.pack('d', obj)))}
18+
"value": base64.b64encode(bytearray(struct.pack('d', obj))).decode("utf-8")}
1919

2020
elif isinstance(obj, np.ndarray):
2121
return {
2222
"type": "numpy",
23-
"value": base64.b64encode(obj.tobytes()),
23+
"value": base64.b64encode(obj.tobytes()).decode("utf-8"),
2424
"dtype": obj.dtype.str,
2525
"shape": list(obj.shape)
2626
}

sasdata/quantities/operations_test.py

Lines changed: 0 additions & 68 deletions
This file was deleted.

sasdata/quantities/quantities_tests.py

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)