本文整理汇总了Python中pyvo.dal.query.votableparse函数的典型用法代码示例。如果您正苦于以下问题:Python votableparse函数的具体用法?Python votableparse怎么用?Python votableparse使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了votableparse函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: setUp
def setUp(self):
resultfile = os.path.join(testdir, siaresultfile)
self.tbl = votableparse(resultfile)
self.result = sia.SIAResults(self.tbl)
self.rec = self.result.getrecord(0)
self.cleanfiles()
开发者ID:cdeil,项目名称:pyvo,代码行数:7,代码来源:testSIA.py
示例2: setUp
def setUp(self):
resultfile = get_pkg_data_filename(ssaresultfile)
self.tbl = votableparse(resultfile)
self.result = ssa.SSAResults(self.tbl)
self.rec = self.result.getrecord(0)
self.outdir = tempfile.mkdtemp()
开发者ID:morganwang010,项目名称:usvirtualobservatory,代码行数:7,代码来源:test_SSA.py
示例3: testErrorParam
def testErrorParam(self):
resultfile = os.path.join(testdir, "error2-cs.xml")
self.tbl = votableparse(resultfile)
try:
res = cs.SCSResults(self.tbl)
self.fail("Failed to detect error response")
except dalq.DALQueryError, ex:
self.assertEquals(ex.label, "Error")
self.assertEquals(ex.reason, "DEC parameter out-of-range")
开发者ID:cdeil,项目名称:pyvo,代码行数:9,代码来源:testCS.py
示例4: testErrorResourceInfo
def testErrorResourceInfo(self):
resultfile = os.path.join(testdir, "error3-cs.xml")
self.tbl = votableparse(resultfile)
try:
res = cs.SCSResults(self.tbl)
self.fail("Failed to detect error response")
except dalq.DALQueryError, ex:
self.assertEquals(ex.label, "Error")
self.assertEquals(ex.reason, "Forced Fail")
开发者ID:cdeil,项目名称:pyvo,代码行数:9,代码来源:testCS.py
示例5: testErrorResourceInfo
def testErrorResourceInfo(self):
resultfile = get_pkg_data_filename("data/error3-cs.xml")
self.tbl = votableparse(resultfile)
try:
res = cs.SCSResults(self.tbl)
self.fail("Failed to detect error response")
except dalq.DALQueryError as ex:
self.assertEquals(ex.label, "Error")
self.assertEquals(ex.reason, "Forced Fail")
开发者ID:RayPlante,项目名称:pyvo,代码行数:9,代码来源:test_CS.py
示例6: testCtorSimpleResource
def testCtorSimpleResource(self):
import pyvo.registry.vao as reg
regresultfile = \
get_pkg_data_filename("../../registry/tests/data/reg-short.xml")
res = dalq.DALResults(votableparse(regresultfile))
# import pytest; pytest.set_trace()
srv = dalq.DALService(self.baseurl, "sga", "3.0",
reg.SimpleResource(res, 0))
self.assertTrue(len(srv.info.keys()) > 0)
self.assertTrue(srv.info.get("title") is not None)
开发者ID:augustfly,项目名称:pyvo,代码行数:10,代码来源:test_QueryNoNet.py
示例7: testErrorParam
def testErrorParam(self):
resultfile = get_pkg_data_filename("data/error2-cs.xml")
self.tbl = votableparse(resultfile)
try:
res = cs.SCSResults(self.tbl)
self.fail("Failed to detect error response")
except dalq.DALQueryError as ex:
self.assertEquals(ex.label, "Error")
# Note: because it is stored in a PARAM and the datatype is "char",
# the value will come out as bytes (rather than unicode)
self.assertEquals(ex.reason, b"DEC parameter out-of-range")
开发者ID:RayPlante,项目名称:pyvo,代码行数:11,代码来源:test_CS.py
示例8: setUp
def setUp(self):
resultfile = get_pkg_data_filename(siaresultfile)
self.tbl = votableparse(resultfile)
self.result = sia.SIAResults(self.tbl)
self.rec = self.result.getrecord(0)
开发者ID:morganwang010,项目名称:usvirtualobservatory,代码行数:5,代码来源:test_SIA.py
示例9: setUp
def setUp(self):
resultfile = get_pkg_data_filename(regresultfile)
self.tbl = votableparse(resultfile)
self.result = reg.RegistryResults(self.tbl)
self.setrec(0)
开发者ID:nuwantnp,项目名称:pyvo,代码行数:5,代码来源:test_VaoReg.py
示例10: setUp
def setUp(self):
resultfile = os.path.join(testdir, regresultfile)
self.tbl = votableparse(resultfile)
self.result = reg.RegistryResults(self.tbl)
self.setrec(0)
开发者ID:cdeil,项目名称:pyvo,代码行数:5,代码来源:testVaoReg.py
示例11: setUp
def setUp(self):
resultfile = get_pkg_data_filename(csresultfile)
self.tbl = votableparse(resultfile)
self.result = cs.SCSResults(self.tbl)
self.rec = self.result.getrecord(0)
开发者ID:RayPlante,项目名称:pyvo,代码行数:5,代码来源:test_CS.py
示例12: setUp
def setUp(self):
resultfile = os.path.join(testdir, siaresultfile)
self.tbl = votableparse(resultfile)
self.result = dalq.DALResults(self.tbl)
self.rec = self.result.getrecord(0)
开发者ID:cdeil,项目名称:pyvo,代码行数:5,代码来源:testQueryNoNet.py
示例13: setUp
def setUp(self):
resultfile = os.path.join(testdir, slaresultfile)
self.tbl = votableparse(resultfile)
self.result = sla.SLAResults(self.tbl)
self.rec = self.result.getrecord(0)
开发者ID:cdeil,项目名称:pyvo,代码行数:5,代码来源:testSLA.py
示例14: setUp
def setUp(self):
resultfile = os.path.join(testdir, csresultfile)
self.tbl = votableparse(resultfile)
self.result = cs.SCSResults(self.tbl)
self.rec = self.result.getrecord(0)
开发者ID:cdeil,项目名称:pyvo,代码行数:5,代码来源:testCS.py
注:本文中的pyvo.dal.query.votableparse函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论