Skip to content

Commit

Permalink
Fix a misleading method name
Browse files Browse the repository at this point in the history
  • Loading branch information
funbaker committed Oct 13, 2016
1 parent 8a46d02 commit 8350a52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/pyvo/data_access.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ the job's result can be retrieved by calling

>>> job.wait()
>>> job.raise_if_error()
>>> result = job.fetch()
>>> result = job.fetch_result()
>>> for row in result:
... print("{0} {1} {2}".format(row["raj2000"], row["dej2000"], row["rv"]))
...
Expand Down Expand Up @@ -1229,6 +1229,7 @@ Here is a list of the relevant attributes and methods of AsyncTAPJob:
~pyvo.dal.tap.AsyncTAPJob.abort
~pyvo.dal.tap.AsyncTAPJob.wait
~pyvo.dal.tap.AsyncTAPJob.raise_if_error
~pyvo.dal.tap.AsyncTAPJob.fetch_result

---------------------------------
Capabilities and service metadata
Expand Down
4 changes: 2 additions & 2 deletions docs/pyvo/pyvo.dal.tap.AsyncTAPJob.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ AsyncTAPJob
~AsyncTAPJob.abort
~AsyncTAPJob.create
~AsyncTAPJob.delete
~AsyncTAPJob.fetch
~AsyncTAPJob.fetch_result
~AsyncTAPJob.raise_if_error
~AsyncTAPJob.run
~AsyncTAPJob.wait
Expand Down Expand Up @@ -80,7 +80,7 @@ AsyncTAPJob
.. automethod:: abort
.. automethod:: create
.. automethod:: delete
.. automethod:: fetch
.. automethod:: fetch_result
.. automethod:: raise_if_error
.. automethod:: run
.. automethod:: wait
Expand Down
2 changes: 1 addition & 1 deletion pyvo/dal/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def raise_if_error(self):
self._job.get("message", "Query was aborted."),
self.phase, self.url, "TAP", "1.0")

def fetch(self):
def fetch_result(self):
"""
returns the result votable if query is finished
"""
Expand Down

0 comments on commit 8350a52

Please sign in to comment.