deprecated/proplyd-cloudy — Issue #28: double lambda in save.py
Author: nahieflores
Created: 2012-02-21 02:00:21+00:00
State: open

In save.py we had two times the line 4740A. Then when we try to sort the lines in model_profile.py we have a mistake:

Line fluxes relative to H beta = 100:
Traceback (most recent call last):
File "../../../emission/model_profile.py", line 195, in
for emline in sorted(emlines, key=sortkey):
File "../../../emission/model_profile.py", line 186, in sortkey
wav = float(wav_s[:-1])
ValueError: invalid literal for float(): 4740A

I can understand the problem and is easy to put a line in model_profile.py, that if the line exist, delete the raw or skip it but I couldn't find the way. I will try this night but is very easy and it have been taking me a lot of time!