Changeset 04a884a in sasview for src/sas/qtgui/MainWindow/DataExplorer.py
- Timestamp:
- Jan 7, 2019 7:23:56 AM (5 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
ra944beb r04a884a 488 488 params = value['fit_params'] 489 489 for page in params: 490 if not isinstance(page, dict): 491 continue 492 if 'is_batch_fitting' not in page: 493 continue 490 494 if page['is_batch_fitting'][0] != 'True': 491 495 continue … … 551 555 if isinstance(new_data, (old_data1d, old_data2d)): 552 556 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 553 560 assert isinstance(new_data, (Data1D, Data2D)) 554 561 # make sure the ID is retained 555 new_data.id = value[0].id556 new_data.group_id = value[0].group_id557 562 properties = value[1] 558 563 is_checked = properties['checked'] … … 561 566 items.append(new_item) 562 567 model = self.theory_model 563 if value[0].is_data:568 if new_data.is_data: 564 569 model = self.model 565 570 # Caption for the theories
Note: See TracChangeset
for help on using the changeset viewer.