def init(): """initialise the bits++ box Note that, by default, bits++ will perform gamma correction that you don't want (unless you have the CRS calibration device) (Recommended that you use the BitsBox class rather than calling this directly) """ if haveBitsDLL: try: retVal = _bits.bitsInit() #returns null if fails? except: log.error('bits.init() barfed!') return 0 return 1
def init(): """initialise the bits++ box Note that, by default, bits++ will perform gamma correction that you don't want (unless you have the CRS calibration device) (Recommended that you use the BitsBox class rather than calling this directly) """ if haveBitsDLL: try: retVal = _bits.bitsInit() #returns null if fails? except: logging.error('bits.init() barfed!') return 0 return 1
def init(): """DEPRECATED: we used to initialise Bits++ via the compiled dll This only ever worked on windows and BitsSharp doesn't need it at all Note that, by default, bits++ will perform gamma correction that you don't want (unless you have the CRS calibration device) (Recommended that you use the BitsPlusPlus class rather than calling this directly) """ retVal = False if haveBitsDLL: try: retVal = _bits.bitsInit() #returns null if fails? except: logging.error('bits.init() barfed!') return retVal
def init(): """DEPRECATED: we used to initialise Bits++ via the compiled dll This only ever worked on windows and BitsSharp doesn't need it at all Note that, by default, Bits++ will perform gamma correction that you don't want (unless you have the CRS calibration device) (Recommended that you use the BitsPlusPlus class rather than calling this directly) """ retVal = False if haveBitsDLL: try: retVal = _bits.bitsInit() # returns null if fails? except Exception: logging.error('bits.init() barfed!') return retVal