Commit d53062f2 authored by Caillat Michel's avatar Caillat Michel
Browse files

Replaced iFreq with iFREQ and modified the try ...except construct for getPixelValueAt....

parent 14cc1f38
......@@ -245,15 +245,17 @@ def getPixelValueAtiFreqiRAiDEC():
logger.debug("getPixelValueAtiFreqiRAiDEC - wrapper : entering" )
try:
relFITSFilePath = rebuildFilename(request.GET['relFITSFilePath'])
iFreq = getIntValue(request.GET['iFreq'])
iFREQ = getIntValue(request.GET['iFREQ'])
iRA = getIntValue(request.GET['iRA'])
iDEC = getIntValue(request.GET['iDEC'])
result = json.dumps(dm.getPixelValueAtiFreqiRAiDEC(relFITSFilePath, iFREQ, iRA, iDEC))
except Exception as e:
logger.debug(f'{e}')
raise
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.print_exc()
message = "%s ! %s" % (repr(e), "".join(traceback.format_list(traceback.extract_tb(exc_traceback))))
result = {"status": False, "message": message}
response.content_type = "application/json; charset=utf-8"
result = json.dumps(dm.getPixelValueAtiFreqiRAiDEC(relFITSFilePath, iFreq, iRA, iDEC))
logger.debug("getPixelValueAtiFreqiRAiDEC - wrapper : exiting" )
return result
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment