Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle endianness for 1 byte INTs #64

Merged
merged 2 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,4 @@ dmypy.json

tests/data/tmp_*
docs/data/tmp_*
local/*
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"Pablo Rodríguez <[email protected]>",
Expand Down
2 changes: 2 additions & 0 deletions src/tsdf/numpy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def bytes_tsdf_to_numpy(n_bits: int):
"<": "little",
">": "big",
"=": sys.byteorder,
"|": "not applicable",
}
""" Supported endianness values. """

Expand All @@ -79,6 +80,7 @@ def endianness_numpy_to_tsdf(data: np.ndarray) -> str:
_map_to_numpy_endianness = {
"little": "<",
"big": ">",
"not applicable": "|",
}
""" Supported endianness values. """

Expand Down
Loading