Skip to content

Commit a5f29a6

Browse files
Jorge Fernandez Hernandezbsipocz
authored andcommitted
GAIAPCR-1036 C9APP-134 New test
1 parent 62d1488 commit a5f29a6

File tree

4 files changed

+1337
-9
lines changed

4 files changed

+1337
-9
lines changed

astroquery/utils/tap/model/taptable.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ def get_qualified_name(self):
3636
-------
3737
The the qualified TAP table name (schema+table)
3838
"""
39+
if '.' in self.name:
40+
return self.name
41+
3942
return f"{self.schema}.{self.name}"
4043

4144
def add_column(self, tap_column):

astroquery/utils/tap/xmlparser/tableSaxParser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
import xml.sax
1919

20-
from astroquery.utils.tap.model.taptable import TapTableMeta
2120
from astroquery.utils.tap.model.tapcolumn import TapColumn
21+
from astroquery.utils.tap.model.taptable import TapTableMeta
2222
from astroquery.utils.tap.xmlparser import utils as Utils
2323

2424
READING_SCHEMA = 10
@@ -94,8 +94,8 @@ def __reading_schema(self, name, attrs):
9494
self.__status = READING_TABLE
9595
self.__currentTable = TapTableMeta()
9696
self.__currentTable.schema = self.__currentSchemaName
97-
self.__currentTable.size_bytes = TapColumn(attrs.getValue('esatapplus:size_bytes'))
98-
97+
if 'esatapplus:size_bytes' in attrs:
98+
self.__currentTable.size_bytes = int(attrs.getValue('esatapplus:size_bytes'))
9999

100100
def __end_schema(self, name):
101101
if self.__check_item_id("name", name):

0 commit comments

Comments
 (0)