-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from pyvirtobs/master
merge latest from master (python3, users manual) for beta2
- Loading branch information
Showing
46 changed files
with
3,052 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
language: python | ||
|
||
python: | ||
- 2.6 | ||
- 2.7 | ||
- 3.2 | ||
- 3.3 | ||
|
||
env: | ||
# try all python versions with the latest stable numpy and astropy | ||
- ASTROPY_VERSION=stable NUMPY_VERSION=1.7.1 SETUP_CMD='test' | ||
|
||
matrix: | ||
include: | ||
#- python: 2.7 | ||
# # opdeps needed because the matplotlib sphinx extension requires them | ||
# env: ASTROPY_VERSION=development NUMPY_VERSION=1.7.1 SETUP_CMD='build_sphinx -w -n' | ||
|
||
## try alternate numpy versions with the latest stable astropy | ||
#- python: 2.7 | ||
# env: ASTROPY_VERSION=stable NUMPY_VERSION=1.6.2 SETUP_CMD='test' | ||
#- python: 2.7 | ||
# env: ASTROPY_VERSION=stable NUMPY_VERSION=1.5.1 SETUP_CMD='test' | ||
#- python: 3.2 | ||
# env: ASTROPY_VERSION=stable NUMPY_VERSION=1.6.2 SETUP_CMD='test' | ||
# numpy < 1.6 does not work on py 3.x | ||
|
||
# try latest developer version of astropy | ||
- python: 2.7 | ||
env: ASTROPY_VERSION=development NUMPY_VERSION=1.7.1 SETUP_CMD='test' | ||
#- python: 3.3 | ||
# env: ASTROPY_VERSION=development NUMPY_VERSION=1.7.1 SETUP_CMD='test' | ||
|
||
before_install: | ||
# We do this to make sure we get the dependencies so pip works below | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq python-numpy python-sphinx cython libatlas-dev liblapack-dev gfortran | ||
- if [[ $SETUP_CMD == build_sphinx* ]]; then sudo apt-get install -qq python-sphinx graphviz texlive-latex-extra dvipng python-matplotlib; fi | ||
|
||
install: | ||
- export PYTHONIOENCODING=UTF8 # just in case | ||
- pip -q install --upgrade "numpy==$NUMPY_VERSION" --use-mirrors | ||
- pip -q install --upgrade Cython --use-mirrors | ||
- if [[ $SETUP_CMD == build_sphinx* ]]; then pip -q install sphinx==1.1.3 --use-mirrors; fi | ||
- if [[ $SETUP_CMD == build_sphinx* ]]; then pip -q install matplotlib --use-mirrors; fi | ||
|
||
- if [[ $ASTROPY_VERSION == stable ]]; then pip -q install astropy --use-mirrors; fi | ||
- if [[ $ASTROPY_VERSION == development ]]; then pip -q install git+http://github.com/astropy/astropy.git#egg=astropy --use-mirrors; fi | ||
|
||
script: | ||
- python setup.py test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
|
||
|
||
SCSQuery | ||
===================== | ||
|
||
.. currentmodule:: pyvo.dal.scs | ||
|
||
.. autoclass:: SCSQuery | ||
:show-inheritance: | ||
|
||
.. rubric:: Attributes Summary | ||
|
||
Search Constraint Attributes: | ||
|
||
.. autosummary:: | ||
|
||
~SCSQuery.dec | ||
~SCSQuery.pos | ||
~SCSQuery.ra | ||
~SCSQuery.radius | ||
~SCSQuery.sr | ||
~SCSQuery.verbosity | ||
|
||
Other Attributes: | ||
|
||
==================================================== ========================================================== | ||
:py:attr:`~pyvo.dal.query.DALQuery.baseurl` the base URL of the service where the query will be | ||
submitted | ||
---------------------------------------------------- ---------------------------------------------------------- | ||
:py:attr:`~pyvo.dal.scs.SCSQuery.std_parameters` the list of predefined parameters supported by the SCS | ||
standard (read-only) | ||
---------------------------------------------------- ---------------------------------------------------------- | ||
:py:attr:`~pyvo.dal.query.DALQuery.protocol` the type of protocol supported by this query instance | ||
(read-only; set to 'scs'). | ||
---------------------------------------------------- ---------------------------------------------------------- | ||
:py:attr:`~pyvo.dal.query.DALQuery.version` the version of the protocol standard supported by this | ||
query instance (read-only) | ||
==================================================== ========================================================== | ||
|
||
.. rubric:: Methods Summary | ||
|
||
.. autosummary:: | ||
|
||
~SCSQuery.execute | ||
~SCSQuery.execute_votable | ||
~SCSQuery.getqueryurl | ||
|
||
.. rubric:: Methods Inherited from DALQuery | ||
|
||
.. autosummary:: | ||
|
||
~pyvo.dal.query.DALQuery.execute_stream | ||
~pyvo.dal.query.DALQuery.execute_raw | ||
~pyvo.dal.query.DALQuery.getqueryurl | ||
~pyvo.dal.query.DALQuery.getparam | ||
~pyvo.dal.query.DALQuery.paramnames | ||
~pyvo.dal.query.DALQuery.setparam | ||
~pyvo.dal.query.DALQuery.unsetparam | ||
|
||
.. rubric:: Attributes Documentation | ||
|
||
.. autoattribute:: dec | ||
.. autoattribute:: pos | ||
.. autoattribute:: ra | ||
.. autoattribute:: radius | ||
.. autoattribute:: sr | ||
.. autoattribute:: verbosity | ||
.. py:attribute:: std_parameters | ||
the list of predefined parameters supported by the Cone Search | ||
(SCS) standard (read-only). These names can be used to set | ||
constraints generically via the | ||
:py:meth:`~pyvo.dal.query.DALQuery.setparam` | ||
method. | ||
|
||
This is set to the following names with the given types and meanings: | ||
|
||
============== ================== ======================================== | ||
Parameter Name Value Type Meaning | ||
============== ================== ======================================== | ||
RA float Same as :py:attr:`ra` | ||
-------------- ------------------ ---------------------------------------- | ||
DEC float Same as :py:attr:`dec` | ||
-------------- ------------------ ---------------------------------------- | ||
SR float Same as :py:attr:`radius` | ||
============== ================== ======================================== | ||
|
||
.. rubric:: Methods Documentation | ||
|
||
.. note:: See also the parent class, :py:class:`~pyvo.dal.query.DALQuery`, for | ||
descriptions of the inherited methods. | ||
|
||
.. automethod:: execute | ||
.. automethod:: execute_votable | ||
.. automethod:: getqueryurl | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
|
||
SCSRecord | ||
====================== | ||
|
||
.. currentmodule:: pyvo.dal.scs | ||
|
||
.. autoclass:: SCSRecord | ||
:show-inheritance: | ||
|
||
.. rubric:: Attributes Summary | ||
|
||
.. autosummary:: | ||
|
||
~SCSRecord.dec | ||
~SCSRecord.id | ||
~SCSRecord.ra | ||
|
||
.. rubric:: Methods Summary | ||
|
||
.. autosummary:: | ||
|
||
~pyvo.dal.query.Record.fielddesc | ||
~pyvo.dal.query.Record.get | ||
|
||
In addition, ``SCSRecord`` supports the usual functions associated | ||
with dictionaries: ``get(key[, default])``, ``has_key(key)``, | ||
``items()``, ``iteritems()``, ``iterkeys()``, ``itervalues()``, | ||
``keys()``, ``values()``. | ||
|
||
.. rubric:: Attributes Documentation | ||
|
||
.. autoattribute:: dec | ||
.. autoattribute:: id | ||
.. autoattribute:: ra | ||
|
||
.. rubric:: Methods Documentation | ||
|
||
.. note:: See the parent class, :py:class:`~pyvo.dal.query.Record`, for | ||
descriptions of the inherited methods. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.