@@ -11,6 +11,8 @@
Loading
11 11
12 12
from astropy.config import paths
13 13
14 +
from . import conf
15 +
14 16
15 17
def data_path(filename: str):
16 18
    """
@@ -32,7 +34,7 @@
Loading
32 34
    return os.path.join(data_dir, filename)
33 35
34 36
35 -
def get_json_species_ids(outfile='splat-species.json'):
37 +
def get_json_species_ids(outfile='splat-species.json', base_url=conf.base_url):
36 38
    """
37 39
    Uses BeautifulSoup to scrape the NRAO Splatalogue species
38 40
    selector form, and caches the result as JSON. The file
@@ -50,7 +52,7 @@
Loading
50 52
    """
51 53
    import bs4
52 54
53 -
    result = requests.get('https://www.cv.nrao.edu/php/splat/b.php')
55 +
    result = requests.get(f'{base_url}/b.php')
54 56
    page = bs4.BeautifulSoup(result.content, 'html5lib')
55 57
    # The ID needs to be checked periodically if Splatalogue is updated
56 58
    sid = page.findAll('select', attrs={'id': 'speciesselectbox'})[0]

@@ -19,8 +19,11 @@
Loading
19 19
    slap_url = _config.ConfigItem(
20 20
        'https://find.nrao.edu/splata-slap/slap',
21 21
        'Splatalogue SLAP interface URL (not used).')
22 +
    base_url = 'https://splatalogue.online'
22 23
    query_url = _config.ConfigItem(
23 -
        'https://www.cv.nrao.edu/php/splat/c_export.php',
24 +
        f'{base_url}/c_export.php',
25 +
        # defunct as of Sep 4, 2020?  (keeping because this is likely the true host)
26 +
        # 'https://www.cv.nrao.edu/php/splat/c_export.php',
24 27
        'Splatalogue web interface URL.')
25 28
    timeout = _config.ConfigItem(
26 29
        60,
Files Coverage
astroquery 63.89%
Project Totals (200 files) 63.89%
5387.2
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading