Changeset 9a42ea1 in sasview
- Timestamp:
- Oct 18, 2018 5:40:10 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 9d23e4c, 1e0296b
- Parents:
- 6040cd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r6040cd7 r9a42ea1 567 567 self.communicate.customModelDirectoryChanged.connect(self.onCustomModelChange) 568 568 self.communicate.saveAnalysisSignal.connect(self.savePageState) 569 #self.communicate.loadAnalysisSignal.connect(self.loadPageState) 569 570 self.smearing_widget.smearingChangedSignal.connect(self.onSmearingOptionsUpdate) 570 571 … … 3418 3419 3419 3420 with open(filepath, 'r') as statefile: 3420 statefile.read(lines) 3421 #column_data = [line.rstrip().split() for line in statefile.readlines()] 3422 lines = statefile.readlines() 3421 3423 3422 3424 # convert into list of lists 3425 pass 3423 3426 3424 3427 def loadAnalysisFile(self): … … 3445 3448 param_list = self.getFitParameters() 3446 3449 if format=="": 3450 param_list = self.getFitPage() 3451 param_list += self.getFitModel() 3447 3452 formatted_output = FittingUtilities.formatParameters(param_list) 3448 3453 elif format == "Excel": … … 3459 3464 def getFitModel(self): 3460 3465 """ 3461 serializes model combosstate3466 serializes combobox state 3462 3467 """ 3463 3468 param_list = [] … … 3468 3473 param_list.append(['fitpage_model', model]) 3469 3474 param_list.append(['fitpage_structure', structure]) 3475 3470 3476 return param_list 3471 3477 … … 3477 3483 # first - regular params 3478 3484 param_list = self.getFitParameters() 3485 3486 param_list.append(['is_data', str(self.data_is_loaded)]) 3487 if self.data_is_loaded: 3488 param_list.append(['data_id', str(self.logic.data.id)]) 3489 param_list.append(['data_name', str(self.logic.data.filename)]) 3479 3490 3480 3491 # option tab … … 3482 3493 param_list.append(['q_range_max', str(self.q_range_max)]) 3483 3494 param_list.append(['q_weighting', str(self.weighting)]) 3495 param_list.append(['weighting', str(self.options_widget.weighting)]) 3484 3496 3485 3497 # resolution … … 3686 3698 pass 3687 3699 self.options_widget.updateQRange(self.q_range_min, self.q_range_max, self.npts) 3700 try: 3701 button_id = int(line_dict['weighting'][0]) 3702 for button in self.options_widget.weightingGroup.buttons(): 3703 if abs(self.options_widget.weightingGroup.id(button)) == button_id+2: 3704 button.setChecked(True) 3705 break 3706 except ValueError: 3707 pass 3688 3708 3689 3709 self.updateFullModel(context)
Note: See TracChangeset
for help on using the changeset viewer.