Opened 10 years ago

Closed 8 years ago

#27 closed defect (fixed)

Fitting mode "Save Presets" raises AttributeError

Reported by: flip Owned by: bsoher
Priority: major Milestone:
Component: fitting Version:
Keywords: Cc:

Description

This is an easy one to recreate, and hopefully easy to fix.

1) Start Analysis
2) Switch to fitting mode (you don't need to open a file first)
3) On the Voigt fitting tool, click the "Save Preset" button. Analysis shows the File Save dialog.
4) Enter a filename. It's not important because the save will fail. Click OK/Save.
5) Boom!

Traceback (most recent call last):
 File "/Users/me/w/duke/src/vespa/analysis/src/events_lorentzgauss.py", line 673, in onSavePreset
   util_fitting.set1_savepreset(self.fittinfo.fitt_data)
 File "/Users/me/w/duke/src/vespa/analysis/src/util_fitting.py", line 2693, in set1_savepreset
   for j in range(fitt_data.fitt_nmmol):
AttributeError: 'MrsVoigt' object has no attribute 'fitt_nmmol'

Change History (1)

comment:1 Changed 8 years ago by flip

  • Resolution set to fixed
  • Status changed from new to closed

This is fixed; probably during one of Analysis' rewrites. It's not even possible to recreate the bug anymore since one can't open fitting mode without first opening a file.

Note: See TracTickets for help on using tickets.