Skip to content

Commit

Permalink
Merge pull request #14157 from meeseeksmachine/auto-backport-of-pr-14…
Browse files Browse the repository at this point in the history
…154-on-v5.2.x

Backport PR #14154 on branch v5.2.x (DOC: Remove CASA, fix VO ref links)
  • Loading branch information
pllim committed Dec 9, 2022
2 parents a58cf4b + 779d4ab commit 3ca7bc8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 37 deletions.
2 changes: 1 addition & 1 deletion astropy/io/votable/exceptions.py
Expand Up @@ -318,7 +318,7 @@ class W02(VOTableSpecWarning):
**References**: `1.1
<http://www.ivoa.net/documents/VOTable/20040811/REC-VOTable-1.1-20040811.html#sec:name>`__,
`XML Names <http://www.w3.org/TR/REC-xml/#NT-Name>`__
`XML Names <https://www.w3.org/TR/xml-names/>`__
"""

message_template = "{} attribute '{}' is invalid. Must be a standard XML id"
Expand Down
36 changes: 1 addition & 35 deletions docs/install.rst
Expand Up @@ -379,41 +379,7 @@ The C libraries currently bundled with ``astropy`` include:
- `expat <https://libexpat.github.io/>`_ see ``cextern/expat/README`` for the
bundled version. To use the system version, set ``ASTROPY_USE_SYSTEM_EXPAT=1``.


Installing ``astropy`` into CASA
--------------------------------

If you want to be able to use ``astropy`` inside `CASA
<https://casa.nrao.edu/>`_, the easiest way is to do so from inside CASA.

First, we need to make sure `pip <https://pip.pypa.io>`__ is
installed. Start up CASA as normal, and then type::

CASA <2>: from setuptools.command import easy_install

CASA <3>: easy_install.main(['--user', 'pip'])

Now, quit CASA and re-open it, then type the following to install ``astropy``::

CASA <2>: import subprocess, sys

CASA <3>: subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--user', 'astropy'])

Then close CASA again and open it, and you should be able to import ``astropy``::

CASA <2>: import astropy

Any ``astropy`` affiliated package can be installed the same way (e.g. the
`spectral-cube <https://spectral-cube.readthedocs.io>`_ or other
packages that may be useful for radio astronomy).

.. note:: The above instructions have not been tested on all systems.
We know of a few examples that do work, but that is not a guarantee
that this will work on all systems. If you install ``astropy`` and begin to
encounter issues with CASA, please look at the `known CASA issues
<https://github.com/astropy/astropy/issues?q=+label%3ACASA-Installation+>`_
and if you do not encounter your issue there, please post a new one.

.. _install_astropy_nightly:

Installing pre-built Development Versions of ``astropy``
--------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/io/votable/references.txt
Expand Up @@ -6,7 +6,7 @@
.. _FIELDref: http://www.ivoa.net/documents/REC/VOTable/VOTable-20040811.html#ToC31
.. _FITS: https://fits.gsfc.nasa.gov/fits_documentation.html
.. _GROUP: http://www.ivoa.net/documents/REC/VOTable/VOTable-20040811.html#ToC31
.. _ID: http://www.w3.org/TR/REC-xml/#id
.. _ID: https://www.w3.org/TR/xml-id/
.. _INFO: http://www.ivoa.net/documents/VOTable/20040811/REC-VOTable-1.1-20040811.html#ToC19
.. _LINK: http://www.ivoa.net/documents/REC/VOTable/VOTable-20040811.html#ToC22
.. _multidimensional arrays: http://www.ivoa.net/documents/REC/VOTable/VOTable-20040811.html#ToC12
Expand Down

0 comments on commit 3ca7bc8

Please sign in to comment.