andycasey / smhr

Spectroscopy Made Hard(er)
14 stars 7 forks source link

Exception raised: 'Pd' #253

Closed maddiecain closed 7 years ago

maddiecain commented 7 years ago

An exception was encountered using version 81b17fd on Python 2.7.6 | 32-bit | (default, Sep 15 2014, 17:36:57) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]:

Traceback (most recent call last):

  File "/Users/madelyncain/smhr/smh/gui/chemical_abundances.py", line 1914, in clicked_btn_update_abund_table
    abund = summary_dict[elem][1]

KeyError: 'Pd'

Additional details on how this exception occurred: Happens with Lu and a few other elements that aren't usually measured

alexji commented 7 years ago

I pushed something that should fix this, but I didn't test to see if it would work or if it would cause problems downstream. I don't think either of those will be a problem though.

Just wanted to check: in these cases, is the synthesis just for a single element (e.g. Pd or Lu) or are you trying to fit multiple elements at once?

maddiecain commented 7 years ago

synthesis of a single element, sometimes if i go to another line and come back the issue is fixed (it was in this case). so its not a really important bug