Changeset 04a884a in sasview
- Timestamp:
- Jan 7, 2019 7:23:56 AM (6 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)
- Location:
- src/sas/qtgui
- Files:
-
- 2 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 -
src/sas/qtgui/Utilities/GuiUtils.py
r99f8760 r04a884a 1388 1388 for p in params.parameters: 1389 1389 p_name = p[1] 1390 param_dict[p_name] = [str(p[0]), str(p[2]), None, str(p[5][1]), str(p[6][1]) ]1390 param_dict[p_name] = [str(p[0]), str(p[2]), None, str(p[5][1]), str(p[6][1]), []] 1391 1391 # orientation parameters 1392 1392 if params.is_2D: … … 1399 1399 if p[6][1] != "": 1400 1400 p_max = p[6][1] 1401 param_dict[p_name] = [str(p[0]), str(p[2]), None, p_min, p_max ]1401 param_dict[p_name] = [str(p[0]), str(p[2]), None, p_min, p_max, []] 1402 1402 1403 1403 # disperse parameters … … 1426 1426 param_dict[p_name] = [p_opt, p_width, p_min, p_max, p_npts, p_nsigmas, p_disp] 1427 1427 1428 param_dict['is_batch_fitting'] = ['False'] 1428 1429 content[params.data_id]['fit_params'] = param_dict 1430 1429 1431 return content 1430 1432
Note: See TracChangeset
for help on using the changeset viewer.