Changeset 0e33a8d in sasview


Ignore:
Timestamp:
Jul 1, 2015 1:57:24 PM (9 years ago)
Author:
Doucet, Mathieu <doucetm@…>
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:
3a5f7c8
Parents:
c80e0ac
Message:

Minor fixes to state loading

Location:
src/sas/perspectives
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/fitting/pagestate.py

    ra15e754 r0e33a8d  
    882882                                # pass if line is empty (it happens) 
    883883                                logging.error(sys.exc_value) 
    884                     dic[name] = numpy.array(value_list) 
     884                        dic[name] = numpy.array(value_list) 
    885885                    setattr(self, item[1], dic) 
    886886 
  • src/sas/perspectives/invariant/invariant_panel.py

    r3db44fb r0e33a8d  
    829829        try: 
    830830            attr = getattr(self, key) 
    831             attr.SetValue(str(value)) 
     831            if attr.__class__.__name__ == "StaticText": 
     832                return 
     833            if type(value) is not bool: 
     834                value = str(value) 
     835            attr.SetValue(value) 
    832836        except: 
    833837            logging.error("Invariant state: %s", sys.exc_value) 
Note: See TracChangeset for help on using the changeset viewer.