-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rewrite the mocserver module
this is mainly motivated by the new support for time mocs and space-time mocs upstream
- Loading branch information
1 parent
75547fb
commit 065b393
Showing
12 changed files
with
1,560 additions
and
818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
""" | ||
CDS MOCServer Query Tool | ||
------------------------ | ||
"""CDS MOCServer Query Tool. | ||
---------------------------- | ||
:Author: Matthieu Baumann ([email protected]) | ||
|
@@ -13,8 +12,9 @@ | |
Note: If the access to MOCs with the MOCServer tool was helpful for your research, | ||
the following acknowledgment would be appreciated:: | ||
This research has made use of the MOCServer, a tool developed at CDS, Strasbourg, France aiming at retrieving | ||
MOCs/meta-data from known data-sets. MOC is an IVOA standard described in the following paper : | ||
This research has made use of the MOCServer, a tool developed at CDS, Strasbourg, | ||
France aiming at retrieving MOCs/meta-data from known data-sets. MOC is an IVOA | ||
standard described in : | ||
http://www.ivoa.net/documents/MOC/20140602/REC-MOC-1.0-20140602.pdf | ||
""" | ||
|
||
|
@@ -24,12 +24,11 @@ | |
|
||
|
||
class Conf(_config.ConfigNamespace): | ||
""" | ||
Configuration parameters for ``astroquery.template_module``. | ||
""" | ||
"""Configuration parameters for ``astroquery.template_module``.""" | ||
|
||
server = _config.ConfigItem( | ||
[ | ||
"https://alasky.unistra.fr/MocServer/query", | ||
"http://alasky.unistra.fr/MocServer/query", | ||
"http://alaskybis.unistra.fr/MocServer/query", | ||
], | ||
|
@@ -40,6 +39,16 @@ class Conf(_config.ConfigNamespace): | |
30, "Time limit for connecting to template_module server." | ||
) | ||
|
||
default_fields = [ | ||
"ID", | ||
"obs_title", | ||
"obs_description", | ||
"nb_rows", | ||
"obs_regime", | ||
"bib_reference", | ||
"dataproduct_type", | ||
] | ||
|
||
|
||
conf = Conf() | ||
|
||
|
Oops, something went wrong.