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

Debugging

parent 7a7076a1
......@@ -921,7 +921,7 @@ class DataBlock:
pixcrd = np.array([[ra, dec, 0, 0]], np.float_)
world = w.all_pix2world(pixcrd, 0)
result = SkyCoord(world[0][0], world[0][1], unit="deg").to_string('hmsdms')
self.__logger.debug("degToHMSDMS: entering")
self.__logger.debug("degToHMSDMS: exiting")
return {"status": True, "message": "", "result": result}
def rangeToHMS(self, start, end, step):
......@@ -934,7 +934,7 @@ class DataBlock:
result = []
for i in range(start, end, step):
self.__logger.debug( "i: %d" % i)
res.append(self.degToHMSDMS(i, 0).split(" ")[0])
result.append(self.degToHMSDMS(i, 0)["result"])
self.__logger.debug("rangeToHMS: exiting")
return {"status": True, "message": "", "result": result}
......@@ -947,7 +947,7 @@ class DataBlock:
result = []
for i in range(start, end, step):
self.__logger.debug( "i: %d" % i)
result.append(self.degToHMSDMS(0, i).split(" ")[1])
result.append(self.degToHMSDMS(0, i)["result"])
self.__logger.debug("rangeToDMS: exiting")
return {"status": True, "message": "", "result": result}
......
......@@ -236,8 +236,8 @@ class DataManagerImpl :
result = self.__checkPresence(relFITSFilePath)
if result["status"]:
result=self.__dataBlocks[relFITSFilePath].degToHMSDMS(ra, dec)
self.__logger.debug("degToHMSDMS : entering")
return {"status": True, "message": "", "result": result}
self.__logger.debug("degToHMSDMS : exiting")
return result
def rangeToHMS(self, start, end, step, relFITSFilePath):
self.__logger.debug("degToHMSDMS : entering")
......@@ -245,7 +245,7 @@ class DataManagerImpl :
if result["status"]:
result=self.__dataBlocks[relFITSFilePath].rangeToHMS(start, end, step)
self.__logger.debug("degToHMSDMS : exiting")
return {"status": True, "message": "", "result": result}
return result
def rangeToDMS(self, start, end, step, relFITSFilePath):
self.__logger.debug("rangeToDMS : entering")
......@@ -253,7 +253,7 @@ class DataManagerImpl :
if result["status"]:
result=self.__dataBlocks[relFITSFilePath].rangeToDMS(start, end, step)
self.__logger.debug("rangeToDMS : exiting")
return {"status": True, "message": "", "result": result}
return result
def getPixelValueAtiFreqiRAiDEC(self, relFITSFilePath, iFreq, iRA, iDEC):
self.__logger.debug("getPixelValueAtiFreqiRAiDEC : entering")
......
......@@ -590,7 +590,7 @@ def main(argv):
if opt in ('-p', '--port'):
port = int(arg)
logger = logging.getLogger('serverWsgi.michel.new')
logger = logging.getLogger(argv[0])
logger.setLevel(logging.DEBUG)
# create console handler and set level to debug
......
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