|
| 1 | +# Licensed under a 3-clause BSD style license - see LICENSE.rst |
1 | 2 | """ |
2 | | -
|
3 | | -@author: Javier Duran |
4 | | - |
| 3 | +========== |
| 4 | +eHST Init |
| 5 | +========== |
5 | 6 |
|
6 | 7 | European Space Astronomy Centre (ESAC) |
7 | 8 | European Space Agency (ESA) |
8 | 9 |
|
9 | | -Created on 13 Aug. 2018 |
10 | | -
|
11 | 10 | """ |
12 | 11 |
|
13 | 12 | from astropy import config as _config |
| 13 | +from astropy.config import paths |
| 14 | +import os |
14 | 15 |
|
15 | 16 |
|
16 | 17 | class Conf(_config.ConfigNamespace): |
17 | 18 | """ |
18 | 19 | Configuration parameters for `astroquery.esa.hubble`. |
19 | 20 | """ |
20 | | - DATA_ACTION = _config.ConfigItem("http://archives.esac.esa.int/" |
21 | | - "ehst-sl-server/servlet/data-action", |
22 | | - "Main url for retriving hst files") |
23 | | - METADATA_ACTION = _config.ConfigItem("http://archives.esac.esa.int/" |
24 | | - "ehst-sl-server/servlet/" |
25 | | - "metadata-action", |
26 | | - "Main url for retriving hst metadata") |
27 | | - TARGET_ACTION = _config.ConfigItem("http://archives.esac.esa.int/" |
28 | | - "ehst-sl-server/servlet/" |
29 | | - "targetresolver-action", |
30 | | - "Main url for solving targets") |
| 21 | + EHST_TAP_SERVER = _config.ConfigItem("https://hst.esac.esa.int/tap-server/tap", "eHST TAP Server") |
| 22 | + EHST_TARGET_ACTION = _config.ConfigItem("servlet/target-resolver?", "eHST Target Resolver") |
| 23 | + EHST_MESSAGES = _config.ConfigItem("notification?action=GetNotifications", "eHST Messages") |
31 | 24 | TIMEOUT = 60 |
32 | 25 |
|
| 26 | + cache_location = os.path.join(paths.get_cache_dir(), 'astroquery/ehst', ) |
| 27 | + |
33 | 28 |
|
34 | 29 | conf = Conf() |
35 | 30 |
|
|
0 commit comments