Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Caillat Michel
yafits
Commits
d53062f2
Commit
d53062f2
authored
Aug 01, 2019
by
Caillat Michel
Browse files
Replaced iFreq with iFREQ and modified the try ...except construct for getPixelValueAt....
parent
14cc1f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
yafitss/serverWsgi.michel.py
View file @
d53062f2
...
...
@@ -245,15 +245,17 @@ def getPixelValueAtiFreqiRAiDEC():
logger
.
debug
(
"getPixelValueAtiFreqiRAiDEC - wrapper : entering"
)
try
:
relFITSFilePath
=
rebuildFilename
(
request
.
GET
[
'relFITSFilePath'
])
iF
req
=
getIntValue
(
request
.
GET
[
'iF
req
'
])
iF
REQ
=
getIntValue
(
request
.
GET
[
'iF
REQ
'
])
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment