Skip to content

Commit

Permalink
Merge pull request #64 from biomarkersParkinson/fix_endianness
Browse files Browse the repository at this point in the history
Handle endianness for 1 byte INTs
  • Loading branch information
Erikpostt authored Feb 10, 2024
2 parents 9054fee + 492e4b7 commit 4dcf9c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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

0 comments on commit 4dcf9c8

Please sign in to comment.