You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: astroquery/template_module/core.py
+63-90Lines changed: 63 additions & 90 deletions
Original file line number
Diff line number
Diff line change
@@ -13,35 +13,58 @@
13
13
14
14
# 3. local imports - use relative imports
15
15
# commonly required local imports shown below as example
16
-
from ..queryimportBaseQuery# all Query classes should inherit from this.
17
-
from ..utilsimportcommons# has common functions required by most modules
18
-
from ..utilsimportprepend_docstr_noreturns# automatically generate docs for similar functions
19
-
from ..utilsimportasync_to_sync# all class methods must be callable as static as well as instance methods.
20
-
from . importconf# import configurable items declared in __init__.py
16
+
# all Query classes should inherit from BaseQuery.
17
+
from ..queryimportBaseQuery
18
+
# has common functions required by most modules
19
+
from ..utilsimportcommons
20
+
# prepend_docstr is a way to copy docstrings between methods
21
+
from ..utilsimportprepend_docstr_noreturns
22
+
# async_to_sync generates the relevant query tools from _async methods
23
+
from ..utilsimportasync_to_sync
24
+
# import configurable items declared in __init__.py
25
+
from . importconf
21
26
22
27
23
28
# export all the public classes and methods
24
-
__all__= ['Dummy', 'DummyClass']
29
+
__all__= ['Template', 'TemplateClass']
25
30
26
31
# declare global variables and constants if any
27
32
28
33
29
34
# Now begin your main class
30
35
# should be decorated with the async_to_sync imported previously
31
36
@async_to_sync
32
-
classDummyClass(BaseQuery):
37
+
classTemplateClass(BaseQuery):
33
38
34
39
"""
35
-
Not all the methods below are necessary but these cover most of the common cases, new methods may be added if necessary, follow the guidelines at <http://astroquery.readthedocs.org/en/latest/api.html>
40
+
Not all the methods below are necessary but these cover most of the common
41
+
cases, new methods may be added if necessary, follow the guidelines at
Copy file name to clipboardExpand all lines: docs/alma/alma.rst
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,15 @@
6
6
ALMA Queries (`astroquery.alma`)
7
7
********************************
8
8
9
+
Example Notebooks
10
+
=================
11
+
A series of example notebooks can be found here:
12
+
13
+
* `What has ALMA observed toward all Messier objects? (an example of querying many sources) <http://nbviewer.ipython.org/gist/keflavich/e798e10e3bf9a93d1453>`_
14
+
* `ALMA finder chart of the Cartwheel galaxy and public Cycle 1 data quicklooks <http://nbviewer.ipython.org/gist/keflavich/d5af22578094853e2d24>`_
15
+
* `Finder charts toward many sources with different backgrounds <http://nbviewer.ipython.org/gist/keflavich/2ef877ec90d774645fee>`_
16
+
* `Finder chart and downloaded data from Cycle 0 observations of Sombrero Galaxy <http://nbviewer.ipython.org/gist/keflavich/9934c9412d8f58299962>`_
0 commit comments