Treehopper Python API
treehopper.utils.utils Namespace Reference

Functions

def constrain (x, maxVal, minVal)
 
def chunks (l, n)
 Yield successive n-sized chunks from l. More...
 
def bit_list_to_bytes (bits, byteorder)
 
def byte_to_bit_list (byte)
 

Function Documentation

◆ bit_list_to_bytes()

def treehopper.utils.utils.bit_list_to_bytes (   bits,
  byteorder 
)

◆ byte_to_bit_list()

def treehopper.utils.utils.byte_to_bit_list (   byte)

◆ chunks()

def treehopper.utils.utils.chunks (   l,
  n 
)

Yield successive n-sized chunks from l.

◆ constrain()

def treehopper.utils.utils.constrain (   x,
  maxVal,
  minVal 
)