Changeset d45e7e9 in sasview for guiframe


Ignore:
Timestamp:
Aug 2, 2010 10:09:10 AM (14 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:
023c8e2
Parents:
f24925ab
Message:

removed the append_plot dialog for a state file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_loader.py

    r0881f51 rd45e7e9  
    2121    is_data1d = existing_panel.__class__.__name__ == "ModelPanel1D"\ 
    2222        and existing_panel.group_id is not None 
    23     
    24     return is_data1d and not is_data2d and not is_theory 
     23    has_meta_data = hasattr(new_plot, 'meta_data') 
     24     
     25    #disable_add_data if the data is being recovered from  a saved state file. 
     26    is_state_data = False 
     27    if has_meta_data: 
     28        if 'invstate' in new_plot.meta_data: is_state_data = True 
     29        if  'prstate' in new_plot.meta_data: is_state_data = True 
     30        if  'fitstate' in new_plot.meta_data: is_state_data = True 
     31 
     32    return is_data1d and not is_data2d and not is_theory and not is_state_data 
    2533 
    2634def parse_name(name, expression): 
Note: See TracChangeset for help on using the changeset viewer.