Skip to content

Commit db3f08b

Browse files
authored
Merge pull request #1937 from tinumide/atomic-doc-cleanup
Atomic documentation clean up
2 parents f032596 + a5cf56e commit db3f08b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

astroquery/atomic/core.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@ def _default_form_values(self):
310310
default_form_values = self._get_default_form_values(form)
311311
self._form_action_url = urlparse.urljoin(self.FORM_URL, form.get('action'))
312312
self.__default_form_values = default_form_values
313-
else:
314-
raise ValueError(self.__default_form_values)
313+
315314
return self.__default_form_values
316315

317316
def _get_default_form_values(self, form):

docs/atomic/atomic.rst

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. doctest-skip-all
2-
31
.. _astroquery_atomic:
42

53
**************************************
@@ -26,17 +24,20 @@ In the following Python session you can see the ``atomic`` package in
2624
action. Note that Hz is actually not a supported unit by Atomic Line List,
2725
the atomic package takes care to support all spectral units.
2826

29-
.. code-block:: python
27+
.. doctest-remote-data::
3028

3129
>>> from astropy import units as u
3230
>>> from astroquery.atomic import AtomicLineList
3331
>>> wavelength_range = (15 * u.nm, 1.5e+16 * u.Hz)
34-
>>> AtomicLineList.query_object(wavelength_range, wavelength_type='Air', wavelength_accuracy=20, element_spectrum='C II-IV')
35-
<Table rows=3 names=('LAMBDA VAC ANG','SPECTRUM','TT','TERM','J J','LEVEL ENERGY CM 1')>
36-
array([(196.8874, 'C IV', 'E1', '2S-2Po', '1/2-*', '0.00 - 507904.40'),
37-
(197.7992, 'C IV', 'E1', '2S-2Po', '1/2-*', '0.00 - 505563.30'),
38-
(199.0122, 'C IV', 'E1', '2S-2Po', '1/2-*', '0.00 - 502481.80')],
39-
dtype=[('LAMBDA VAC ANG', '<f8'), ('SPECTRUM', 'S4'), ('TT', 'S2'), ('TERM', 'S6'), ('J J', 'S5'), ('LEVEL ENERGY CM 1', 'S18')])
32+
>>> AtomicLineList.query_object(wavelength_range=wavelength_range, wavelength_type='Air',
33+
... wavelength_accuracy=20, element_spectrum='C II-IV')
34+
<Table length=3>
35+
LAMBDA VAC ANG SPECTRUM TT ... J J A_ki LEVEL ENERGY CM 1
36+
float64 str4 str2 ... str5 float64 str18
37+
-------------- -------- ---- ... ----- ----------- ------------------
38+
196.8874 C IV E1 ... 1/2-* 91300000.0 0.00 - 507904.40
39+
197.7992 C IV E1 ... 1/2-* 118000000.0 0.00 - 505563.30
40+
199.0122 C IV E1 ... 1/2-* 157000000.0 0.00 - 502481.80
4041

4142

4243
Reference/API

0 commit comments

Comments
 (0)