From fff2b9dda335a4fadaecff1250fbc8b08c4819e5 Mon Sep 17 00:00:00 2001 From: Vedran Kasalica Date: Fri, 9 Feb 2024 16:55:48 +0100 Subject: [PATCH 1/2] Handle endianness for 1 byte INTs --- .gitignore | 1 + src/tsdf/numpy_utils.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index c49449b..3953b2a 100644 --- a/.gitignore +++ b/.gitignore @@ -146,3 +146,4 @@ dmypy.json tests/data/tmp_* docs/data/tmp_* +local/* diff --git a/src/tsdf/numpy_utils.py b/src/tsdf/numpy_utils.py index 4d91308..e7f6ea0 100644 --- a/src/tsdf/numpy_utils.py +++ b/src/tsdf/numpy_utils.py @@ -61,6 +61,7 @@ def bytes_tsdf_to_numpy(n_bits: int): "<": "little", ">": "big", "=": sys.byteorder, + "|": "not applicable", } """ Supported endianness values. """ @@ -79,6 +80,7 @@ def endianness_numpy_to_tsdf(data: np.ndarray) -> str: _map_to_numpy_endianness = { "little": "<", "big": ">", + "not applicable": "|", } """ Supported endianness values. """ From 492e4b71dc77b69105580be8fcf7ebdd21f10ffd Mon Sep 17 00:00:00 2001 From: Vedran Kasalica Date: Fri, 9 Feb 2024 16:57:07 +0100 Subject: [PATCH 2/2] Update the version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6528966..9fbb232 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tsdf" -version = "0.5.1" +version = "0.5.2" description = "A Python library that provides methods for encoding and decoding TSDF (Time Series Data Format) data, which allows you to easily create, manipulate and serialize TSDF files in your Python code." authors = ["Peter Kok ", "Pablo Rodríguez ",