Ignore:
Timestamp:
Sep 27, 2012 4:49:55 PM (12 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:
b4c1815
Parents:
0bf4840
Message:

found and fixed broken polydispersity set state/project file

File:
1 edited

Legend:

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

    rea5fa58 r2c44cf8  
    850850                # Recover _disp_obj_dict from xml file 
    851851                self._disp_obj_dict = {} 
     852                disp_model = None 
    852853                for item in list_of_obj_dic: 
    853854                    # Get node 
     
    861862                            # Try to recover disp_model object from strings 
    862863                            com = "from sans.models.dispersion_models " 
    863                             com += "import %s as disp /ndisp_model = disp()" 
     864                            com += "import %s as disp" 
    864865                            com_name = disp_name.split(".")[3] 
    865866                            exec com % com_name 
     867                            disp_model = disp() 
    866868                            exec "self.%s['%s'] = com_name" % (item[1], name) 
    867869                        except: 
Note: See TracChangeset for help on using the changeset viewer.