Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion astroquery/alma/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def stage_data(self, uids):
payload = {'dataset':['ALMA+'+clean_uid(uid) for uid in uids]}
log.debug("First request payload: {0}".format(payload))

self._staging_log = {}
self._staging_log = {'first_post_url':url}

# Request staging for the UIDs
# This component cannot be cached, since the returned data can change
Expand Down
9 changes: 6 additions & 3 deletions astroquery/simbad/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,17 +892,20 @@ def nb_errors(self):
class SimbadVOTableResult(SimbadResult):
"""VOTable-type Simbad result"""
def __init__(self, txt, verbose=False, pedantic=False):
SimbadResult.__init__(self, txt, verbose=verbose)
self.__pedantic = pedantic
self.__table = None
if not self.verbose:
if not verbose:
commons.suppress_vo_warnings()
super(SimbadVOTableResult, self).__init__(txt, verbose=verbose)


@property
def table(self):
if self.__table is None:
self.__table = votable.parse_single_table(BytesIO(self.data.encode('utf8')), pedantic=False).to_table()
self.bytes = BytesIO(self.data.encode('utf8'))
tbl = votable.parse_single_table(self.bytes, pedantic=False)
self.__table = tbl.to_table()
self.__table.convert_bytestring_to_unicode()
return self.__table

bibcode_regex = re.compile(r'query\s+bibcode\s+(wildcard)?\s+([\w]*)')
Expand Down