Ignore:
Timestamp:
Oct 19, 2011 4:35:24 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
5d192cd
Parents:
08dc9e87
Message:

make sure a new group id is created for 2d data on batch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fitting.py

    r3b70cc7 re80e704  
    12471247            theory_data.id = wx.NewId() 
    12481248            theory_data.name = model.name + "[%s]" % str(data.name) 
     1249            if issubclass(theory_data.__class__, Data2D): 
     1250                group_id = wx.NewId() 
     1251                theory_data.group_id = group_id 
     1252                if group_id not in theory_data.list_group_id: 
     1253                    theory_data.list_group_id.append(group_id) 
     1254                 
    12491255            try: 
    12501256                # associate residuals plot 
     1257                if issubclass(residuals.__class__, Data2D): 
     1258                    group_id = wx.NewId() 
     1259                    residuals.group_id = group_id 
     1260                    if group_id not in residuals.list_group_id: 
     1261                        residuals.list_group_id.append(group_id) 
    12511262                batch_outputs["Chi2"][index].object = [residuals] 
    12521263            except: 
Note: See TracChangeset for help on using the changeset viewer.