Changeset 1c98850 in sasview for src/sas/qtgui/MainWindow


Ignore:
Timestamp:
Jan 7, 2019 9:38:15 AM (6 years ago)
Author:
wojciech
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
07d744c
Parents:
a3b7542 (diff), 04a884a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ESS_GUI' of https://github.com/SasView/sasview into ESS_GUI

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.