# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
ALMA Archive service.
"""
from astropy import config as _config


class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.alma`.
    """

    timeout = _config.ConfigItem(60, "Timeout in seconds.")

    archive_url = _config.ConfigItem(
        ['http://almascience.org',
         'https://almascience.eso.org',
         'https://almascience.nrao.edu',
         'https://almascience.nao.ac.jp',
         'https://beta.cadc-ccda.hia-iha.nrc-cnrc.gc.ca'],
        'The ALMA Archive mirror to use.')

    debug_url = _config.ConfigItem(
        ['https://2020feb.asa-test.alma.cl'],
        ['https://asa.hq.eso.org:8443'],
    )

    username = _config.ConfigItem(
        "",
        'Optional default username for ALMA archive.')


conf = Conf()

from .core import Alma, AlmaClass
from .utils import make_finder_chart

__all__ = ['Alma', 'AlmaClass',
           'Conf', 'conf',
           ]

# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
ALMA Archive service.
"""
from astropy import config as _config


class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.alma`.
    """

    timeout = _config.ConfigItem(60, "Timeout in seconds.")

    archive_url = _config.ConfigItem(
        ['http://almascience.org',
         'https://almascience.eso.org',
         'https://almascience.nrao.edu',
         'https://almascience.nao.ac.jp',
         'https://beta.cadc-ccda.hia-iha.nrc-cnrc.gc.ca'],
        'The ALMA Archive mirror to use.')

    debug_url = _config.ConfigItem(
        ['https://2020feb.asa-test.alma.cl',
         'https://asa.hq.eso.org:8443'],
        'ALMA Archive Test Mirrors (temporary)'
    )

    username = _config.ConfigItem(
        "",
        'Optional default username for ALMA archive.')


conf = Conf()

from .core import Alma, AlmaClass
from .utils import make_finder_chart

__all__ = ['Alma', 'AlmaClass',
           'Conf', 'conf',
           ]

fix test URLs