import os.path import numpy as np import struct import itertools def createMissingDir(destPath): theDir=os.path.normpath(destPath) if not os.path.exists(theDir): os.makedirs(theDir) def float_to_hex(f): """ Convert and x86 float to an ARM unsigned long int. Args: f (float): value to be converted Raises: Nothing Returns: str : representation of the hex value """ return hex(struct.unpack(' 0x07FFFFFFF): r = 0x07FFFFFFF if (r < -0x080000000): r = -0x080000000 return hex(struct.unpack(' 0x07FFF): r = 0x07FFF if (r < -0x08000): r = -0x08000 return hex(struct.unpack(' 0x07F): r = 0x07F if (r < -0x080): r = -0x080 return hex(struct.unpack('