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

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): ...@@ -176,6 +176,7 @@ def _sed_worker(obs, mod, filters, sed_type, nologo):
label="Stellar unattenuated", color='b', marker=None, label="Stellar unattenuated", color='b', marker=None,
nonposy='clip', linestyle='--', linewidth=0.5) nonposy='clip', linestyle='--', linewidth=0.5)
# Nebular emission # Nebular emission
if 'nebular.lines_young' in sed.columns:
ax1.loglog(wavelength_spec[wsed], ax1.loglog(wavelength_spec[wsed],
(sed['nebular.lines_young'][wsed] + (sed['nebular.lines_young'][wsed] +
sed['nebular.lines_old'][wsed] + sed['nebular.lines_old'][wsed] +
......
Markdown is supported
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