File tree Expand file tree Collapse file tree 2 files changed +15
-17
lines changed Expand file tree Collapse file tree 2 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -694,13 +694,16 @@ def get_status_messages(self):
694694 the status of JWST TAP
695695 """
696696
697- subContext = conf .JWST_MESSAGES
698- connHandler = self .__jwsttap ._TapPlus__getconnhandler ()
699- response = connHandler .execute_tapget (subContext , False )
700- if response .status == 200 :
701- for line in response :
702- string_message = line .decode ("utf-8" )
703- print (string_message [string_message .index ('=' )+ 1 :])
697+ try :
698+ subContext = conf .JWST_MESSAGES
699+ connHandler = self .__jwsttap ._TapPlus__getconnhandler ()
700+ response = connHandler .execute_tapget (subContext , False )
701+ if response .status == 200 :
702+ for line in response :
703+ string_message = line .decode ("utf-8" )
704+ print (string_message [string_message .index ('=' )+ 1 :])
705+ except OSError as e :
706+ print ("Status messages could not be retrieved" )
704707
705708 def get_product_list (self , * , observation_id = None ,
706709 cal_level = "ALL" ,
@@ -1241,7 +1244,4 @@ def get_decoded_string(str):
12411244 return str
12421245
12431246
1244- if "pytest" in sys .modules :
1245- Jwst = JwstClass (show_messages = False )
1246- else :
1247- Jwst = JwstClass ()
1247+ Jwst = JwstClass ()
Original file line number Diff line number Diff line change @@ -31,12 +31,10 @@ origins of life
3131* The birth of stars and proto-planetary systems.
3232* Planetary systems and the origins of life.
3333
34- This package allows the access to the European Space Agency JWST Archive
35- (http://jwstdummyarchive.com/)
36-
37- ESA JWST Archive access is based on a TAP+ REST service. TAP+ is an extension of
38- Table Access Protocol (TAP: http://www.ivoa.net/documents/TAP/) specified by the
39- International Virtual Observatory Alliance (IVOA: http://www.ivoa.net).
34+ This package provides access to the metadata and datasets provided by the
35+ European Space Agency JWST Archive using a TAP+ REST service. TAP+ is an
36+ extension of Table Access Protocol (TAP: http://www.ivoa.net/documents/TAP/)
37+ specified by the International Virtual Observatory Alliance (IVOA: http://www.ivoa.net).
4038
4139The TAP query language is Astronomical Data Query Language
4240(ADQL: http://www.ivoa.net/documents/ADQL/2.0), which is similar
You can’t perform that action at this time.
0 commit comments