MCPcopy Create free account
hub / github.com/PyTables/PyTables / correct_byteorder

Function correct_byteorder

tables/utils.py:50–55  ·  view source on GitHub ↗

Fix the byteorder depending on the PyTables types.

(ptype: str, byteorder: str)

Source from the content-addressed store, hash-verified

48
49
50def correct_byteorder(ptype: str, byteorder: str) -> str:
51 """Fix the byteorder depending on the PyTables types."""
52 if ptype in ["string", "bool", "int8", "uint8", "object"]:
53 return "irrelevant"
54 else:
55 return byteorder
56
57
58def is_idx(index: Any) -> bool:

Callers 2

_g_createMethod · 0.85
_g_create_commonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected