Support for files in the LAMDA format
(Leiden Atomic and Molecular Database), as used by RADEX and ProDiMo.
Features
Outline and breadcrumbs: molecule, levels, radiative transitions, collision partners
and notes.
Folding, sticky scroll of the column headers, and syntax highlighting.
Hover on a level number, rate value, frequency or partner ID: level energy and
quantum numbers, temperature, computed values, partner name.
Go to definition (F12) from a level number to its level row.
Inlay hints: partner names after partner IDs, optionally the temperature of each rate.
Checks with pylamda while typing and on save, in
the Problems panel.
Status bar: CO · 41 lev · 40 lin · 4 partners.
All features except the checks work without pylamda.
Setup
For the checks, install pylamda (pip install pylamda). If it is not on the PATH (e.g. in
a conda environment), set lamda.pylamda.path to the full path, e.g.
~/miniforge3/envs/PYLAMDA/bin/pylamda.
A file is a LAMDA file if its first line is !MOLECULE (or !ION, !ATOM), if its name
matches *lamda*.dat or *lambda*.dat (any case), or if it ends with .lamda. For other
files, use Change Language Mode → LAMDA, or files.associations.
Settings
Setting
Default
Meaning
lamda.pylamda.enable
true
Check LAMDA files with pylamda.
lamda.pylamda.path
pylamda
The pylamda executable, or a Python interpreter.
lamda.pylamda.args
[]
Extra arguments for pylamda check, e.g. ["--physics"].
lamda.pylamda.run
onType
onType: while typing; onSave: only on open and save.