andycasey / smhr

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

Exception raised: #313

Closed maddiecain closed 5 years ago

maddiecain commented 5 years ago

An exception was encountered using version 12eec10 on Python 2.7.15 |Anaconda, Inc.| (default, Oct 23 2018, 13:35:16) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]:

Traceback (most recent call last):

  File "/Users/madelyncain/smhr-2/smhr/smh/gui/chemical_abundances.py", line 945, in selected_model_changed
    self.update_spectrum_figure(True)

  File "/Users/madelyncain/smhr-2/smhr/smh/gui/chemical_abundances.py", line 980, in update_spectrum_figure
    label_rv=label_rv)

  File "/Users/madelyncain/smhr-2/smhr/smh/gui/base.py", line 294, in update_spectrum_figure
    success = self._plot_model()

  File "/Users/madelyncain/smhr-2/smhr/smh/gui/base.py", line 623, in _plot_model
    assert len(meta["model_x"]) == len(meta["residual"])

AssertionError

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

screenshot

Additional details on how this exception occurred:

alexji commented 5 years ago

This is an error for the full_synth_resolution (used to plot the synthesized spectrum on its native sampling rather than just at the points where the data are taken). It should go away if you refit the spectrum.

In your ~/.smh_session.defaults file, you can check for this line: full_synth_resolution: 1

Set it to 1 or 0 depending on what you want.

On Tue, Apr 30, 2019 at 1:11 PM maddiecain notifications@github.com wrote:

An exception was encountered using version 12eec10 https://github.com/andycasey/smhr/commit/12eec106c6d4a5b87476b60356d72490cbfbbe1c on Python 2.7.15 |Anaconda, Inc.| (default, Oct 23 2018, 13:35:16) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]:

Traceback (most recent call last):

File "/Users/madelyncain/smhr-2/smhr/smh/gui/chemical_abundances.py", line 945, in selected_model_changed self.update_spectrum_figure(True)

File "/Users/madelyncain/smhr-2/smhr/smh/gui/chemical_abundances.py", line 980, in update_spectrum_figure label_rv=label_rv)

File "/Users/madelyncain/smhr-2/smhr/smh/gui/base.py", line 294, in update_spectrum_figure success = self._plot_model()

File "/Users/madelyncain/smhr-2/smhr/smh/gui/base.py", line 623, in _plot_model assert len(meta["model_x"]) == len(meta["residual"]) AssertionError

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

[image: screenshot] https://camo.githubusercontent.com/f1952d7b885133d443cb2015d54079afbb00562d/68747470733a2f2f7472616e736665722e73682f34757369432f73637265656e73686f742e706e67

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/313, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXQRDQDJGGG5R5OVQSY5EDPTCRV5ANCNFSM4HJPZN3Q .