Skip to content

Commit

Permalink
Handle endianness for 1 byte INTs
Browse files Browse the repository at this point in the history
  • Loading branch information
vedran-kasalica committed Feb 9, 2024
1 parent 9054fee commit fff2b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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: 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 fff2b9d

Please sign in to comment.