Example #1
0
def makeDark(path):
    '''make a master dark from a folder'''
    try:
        improc = FirstPassProcessor(path)
        logger.info("Making dark at path " + path)
        improc.makeDark()
        return okJSONResponse()
    except ValueError as e:
        return errorJSONResponse(str(e))
    except Exception as e:
        #an unexpected exception
        logger.debug(traceback.format_exc()) #log the traceback
        raise e
Example #2
0
def makeDark(path):
    '''make a master dark from a folder'''
    try:
        improc = FirstPassProcessor(path)
        logger.info("Making dark at path " + path)
        improc.makeDark()
        return okJSONResponse()
    except ValueError as e:
        return errorJSONResponse(str(e))
    except Exception as e:
        #an unexpected exception
        logger.debug(traceback.format_exc())  #log the traceback
        raise e