コード例 #1
0
ファイル: action_views.py プロジェクト: rovor/RedROVOR
def subZeroDark(path):
    '''subtract zeros and darks from the object files in a folder'''
    try:
        improc = FirstPassProcessor(path)
        logger.info("Processing object files in "+path)
        improc.zero_and_dark_subtract()
        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
コード例 #2
0
ファイル: action_views.py プロジェクト: rovor/RedROVOR
def subZeroDark(path):
    '''subtract zeros and darks from the object files in a folder'''
    try:
        improc = FirstPassProcessor(path)
        logger.info("Processing object files in " + path)
        improc.zero_and_dark_subtract()
        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
コード例 #3
0
ファイル: action_views.py プロジェクト: rovor/RedROVOR
def makeFlats(path):
    '''make master flats from a folder'''
    try:
        improc = FirstPassProcessor(path)
        logger.info("Making flats at path " + path)
        improc.makeFlats()
        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
コード例 #4
0
ファイル: action_views.py プロジェクト: rovor/RedROVOR
def makeFlats(path):
    '''make master flats from a folder'''
    try:
        improc = FirstPassProcessor(path)
        logger.info("Making flats at path " + path)
        improc.makeFlats()
        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