1
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2 1
"""
3
Accessing Online Astronomical Data.
4

5
Astroquery is an astropy affiliated package that contains a collection of tools
6
to access online Astronomical data. Each web service has its own sub-package.
7
"""
8

9
# Affiliated packages may add whatever they like to this file, but
10
# should keep this content at the top.
11
# ----------------------------------------------------------------------------
12 1
from ._astropy_init import *
13
# ----------------------------------------------------------------------------
14

15 1
import os
16

17

18
# Set the bibtex entry to the article referenced in CITATION.
19 1
def _get_bibtex():
20 1
    citation_file = os.path.join(os.path.dirname(__file__), 'CITATION')
21

22 1
    with open(citation_file, 'r') as citation:
23 1
        refs = citation.read().split('@ARTICLE')[1:]
24 1
        if len(refs) == 0: return ''
25 1
        bibtexreference = "@ARTICLE{0}".format(refs[0])
26 1
    return bibtexreference
27

28

29 1
__citation__ = __bibtex__ = _get_bibtex()

Read our documentation on viewing source code .

Loading