Re-add sample.{get,put}_bytes

This commit is contained in:
2021-08-11 06:24:10 -05:00
parent 256d3d094f
commit 5b3a56f053
4 changed files with 25 additions and 6 deletions

View File

@@ -275,7 +275,7 @@ def _equals_preprocess(obj: Any) -> Any:
return np.round(obj, decimals=6).tolist()
else:
return obj.tolist()
elif isinstance(obj, (int, str, bool, np.bool_, np.bytes_, bytes)):
elif isinstance(obj, (int, str, bool, np.bool_, np.bytes_, bytes, bytearray)):
return obj
elif isinstance(obj, float):
return round(obj, 6)