Ignore:
Timestamp:
Jun 21, 2010 3:32:20 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
3ad91de
Parents:
43db4a8
Message:

work on save state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/pagestate.py

    r0b12abb5 re3d1423  
    3737                      ["name", "name", "string"], 
    3838                      ["data_name", "data_name", "string"]] 
    39 list_of_state_attributes = [["qmin", "qmin", "float"], 
     39list_of_state_attributes = [["engine_type", "engine_type", "string"], 
     40                       ["qmin", "qmin", "float"], 
    4041                      ["qmax", "qmax", "float"], 
    4142                      ["npts", "npts", "float"], 
     
    105106        elif item[2] == "bool": 
    106107            try: 
    107                 exec "value = bool(node.get(item[0]).strip())" 
    108                 return value 
     108                return node.get(item[0]).strip() == "True" 
     109                 
    109110            except: 
    110111                return None 
Note: See TracChangeset for help on using the changeset viewer.