Commit c23b567d authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Test whether there is a nebular component before attempting to plot it.

parent 09fe7e6b
......@@ -176,6 +176,7 @@ def _sed_worker(obs, mod, filters, sed_type, nologo):
label="Stellar unattenuated", color='b', marker=None,
nonposy='clip', linestyle='--', linewidth=0.5)
# Nebular emission
if 'nebular.lines_young' in sed.columns:
(sed['nebular.lines_young'][wsed] +
sed['nebular.lines_old'][wsed] +
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment