Morisset / pySSN

Pythonic Spectral Synthesis for Nebulae
Other
4 stars 2 forks source link

nearby line window calling wrong ion #21

Closed Morisset closed 6 years ago

Morisset commented 6 years ago

Select a wavelength range that includes 4959 and 5007. In the popup window of the nearby lines, click on the [OIII]5007 line ID (8033400004003): it opens the OIII line info dialog. That's OK. But click on the [OIII]4959 line ID (8033400004002), it opens the ArIII line info dialog!

mvfcopetti commented 6 years ago

Change lines 1298 to 1300 in spectrum.py by:

        s = str(int(s))
                if (int(s) == line_num) or (s[:k] == line_num_str and s[k:].strip('0') == ''):
mvfcopetti commented 6 years ago

In the previous message there was a wrong indentation (Tabs again).

Right indentation:

                s = str(int(s))
                if (int(s) == line_num) or (s[:k] == line_num_str and s[k:].strip('0') == ''):
Morisset commented 6 years ago

We actually removed lines there because they were buggy. These new ones have an horrible look, but works well ;-)