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
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
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