Changeset 247cb58 in sasview
- Timestamp:
- Apr 15, 2010 10:57:33 AM (15 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 2339249f
- Parents:
- 8ea48a0
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r5d81167 r247cb58 1035 1035 # set mask 1036 1036 is_modified = self._validate_Npts() 1037 1037 1038 1038 else: 1039 1039 self.fitrange = False … … 1041 1041 ## if any value is modify draw model with new value 1042 1042 if not self.fitrange: 1043 self.btFit.Disable()1043 #self.btFit.Disable() 1044 1044 if is_2Ddata: self.btEditMask.Disable() 1045 1045 else: 1046 self.btFit.Enable(True)1046 #self.btFit.Enable(True) 1047 1047 if is_2Ddata: self.btEditMask.Enable(True) 1048 1048 … … 1116 1116 #For invalid q range, disable the mask editor and fit button, vs. 1117 1117 if not self.fitrange: 1118 self.btFit.Disable()1118 #self.btFit.Disable() 1119 1119 self.btEditMask.Disable() 1120 1120 else: 1121 self.btFit.Enable(True)1121 #self.btFit.Enable(True) 1122 1122 self.btEditMask.Enable(True) 1123 1123 -
sansview/perspectives/fitting/fitpage.py
r2012eae r247cb58 1129 1129 1130 1130 is_valid_qrange = self._update_paramv_on_fit() 1131 1131 1132 if is_valid_qrange: 1133 # try re draw the model plot if it exists 1132 1134 self._draw_model() 1133 1135 self.panel.Destroy() # frame 1134 1136 self.set_npts2fit() 1137 elif self.model == None: 1138 self.panel.Destroy() 1139 self.set_npts2fit() 1140 msg= "No model is found on updating MASK in the model plot... " 1141 wx.PostEvent(self.parent.parent, StatusEvent(status = msg )) 1135 1142 else: 1136 msg = ' Please consider your Q range .'1143 msg = ' Please consider your Q range, too.' 1137 1144 self.panel.ShowMessage(msg) 1138 1145
Note: See TracChangeset
for help on using the changeset viewer.