andycasey / smhr

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

Exception raised: too many values to unpack #283

Closed HonggeunKim closed 5 years ago

HonggeunKim commented 6 years ago

An exception was encountered in this session using version None on Python 2.7.14 |Anaconda, Inc.| (default, Dec 7 2017, 17:05:42) [GCC 7.2.0]:

Traceback (most recent call last):

  File "/home/honggeun/smhr-master/smh/gui/linelist_manager.py", line 976, in import_transitions
    N = self.session.import_transitions(path)

  File "/home/honggeun/smhr-master/smh/session.py", line 318, in import_transitions
    line_list, spectral_model_states = pickle.load(fp)

ValueError: too many values to unpack

Below is a screenshot from the application at the time that the exception occurred:

screenshot

Additional details on how this exception occurred:

alexji commented 6 years ago

This is probably due to importing the wrong thing; use import transitions after you've exported previously measured transitions from SMHR. If you want to add synthesis linelists or equivalent width linelists, use those buttons instead.

I will close this issue after having SMHR create a useful error message...

On Fri, Mar 30, 2018 at 10:07 AM, HonggeunKim notifications@github.com wrote:

An exception was encountered in this session https://transfer.sh/zCSvw/session.smh using version None on Python 2.7.14 |Anaconda, Inc.| (default, Dec 7 2017, 17:05:42) [GCC 7.2.0]:

Traceback (most recent call last):

File "/home/honggeun/smhr-master/smh/gui/linelist_manager.py", line 976, in import_transitions N = self.session.import_transitions(path)

File "/home/honggeun/smhr-master/smh/session.py", line 318, in import_transitions line_list, spectral_model_states = pickle.load(fp) ValueError: too many values to unpack

Below is a screenshot from the application at the time that the exception occurred:

[image: screenshot] https://camo.githubusercontent.com/175ed41cef33a237d67c1fb64c72365e10148fc5/68747470733a2f2f7472616e736665722e73682f31553967762f73637265656e73686f742e706e67

Additional details on how this exception occurred:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andycasey/smhr/issues/283, or mute the thread https://github.com/notifications/unsubscribe-auth/AC8Ijlj9vlcBCe8Umam2vA1gsAu-iV4Eks5tjmZkgaJpZM4TB6l7 .

alexji commented 5 years ago

This was an older version of SMH and has now been fixed when import_transitions was refactored