Ignore:
Timestamp:
Jan 7, 2019 7:23:56 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
10786bc2, 44a698c
Parents:
59b925c1
git-author:
Piotr Rozyczko <piotr.rozyczko@…> (01/07/19 07:22:49)
git-committer:
Piotr Rozyczko <piotr.rozyczko@…> (01/07/19 07:23:56)
Message:

Minor fixes for SVS loader/converter logic. SASVIEW-1237

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    ra944beb r04a884a  
    488488            params = value['fit_params'] 
    489489            for page in params: 
     490                if not isinstance(page, dict): 
     491                    continue 
     492                if 'is_batch_fitting' not in page: 
     493                    continue 
    490494                if page['is_batch_fitting'][0] != 'True': 
    491495                    continue 
     
    551555            if isinstance(new_data, (old_data1d, old_data2d)): 
    552556                new_data = self.manager.create_gui_data(value[0], new_data.filename) 
     557            if hasattr(value[0], 'id'): 
     558                new_data.id = value[0].id 
     559                new_data.group_id = value[0].group_id 
    553560            assert isinstance(new_data, (Data1D, Data2D)) 
    554561            # make sure the ID is retained 
    555             new_data.id = value[0].id 
    556             new_data.group_id = value[0].group_id 
    557562            properties = value[1] 
    558563            is_checked = properties['checked'] 
     
    561566            items.append(new_item) 
    562567            model = self.theory_model 
    563             if value[0].is_data: 
     568            if new_data.is_data: 
    564569                model = self.model 
    565570                # Caption for the theories 
Note: See TracChangeset for help on using the changeset viewer.