Skip to content

Commit fdc0fb2

Browse files
authored
Merge pull request #757 from migueldvb/lamda
Import parse_lamda_datafile into package level
2 parents 550f2a3 + cc27f05 commit fdc0fb2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

astroquery/lamda/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
references to the original papers providing the spectroscopic and collisional
1616
data are encouraged.
1717
"""
18-
from .core import Lamda
18+
from .core import Lamda, parse_lamda_datafile

astroquery/lamda/core.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,21 @@ def _absurl_from_url(url, base_url):
181181

182182

183183
def parse_lamda_datafile(filename):
184+
"""
185+
Read a datafile that follows the format adopted for the atomic and
186+
molecular data in the LAMDA database.
187+
188+
Parameters
189+
----------
190+
filename : str
191+
Fully qualified path of the file to read.
192+
193+
Returns
194+
-------
195+
Tuple of tables: ({rateid: Table, },
196+
Table,
197+
Table)
198+
"""
184199
with open(filename) as f:
185200
lines = f.readlines()
186201
return parse_lamda_lines(lines)

0 commit comments

Comments
 (0)