Changeset 06aa2eeb in sasview
- Timestamp:
- Apr 14, 2011 2:58:45 PM (14 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:
- 69f9084
- Parents:
- e9875db
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
re9875db r06aa2eeb 2390 2390 # return 2391 2391 ##For 3 different cases: Data2D, Data1D, and theory 2392 if self.data.__class__.__name__ == "Data2D": 2392 if self.model == None: 2393 msg="Please select a model first..." 2394 wx.MessageBox(msg, 'Info') 2395 flag = False 2396 return 2397 2398 elif self.data.__class__.__name__ == "Data2D": 2393 2399 data_min= 0 2394 2400 x= max(math.fabs(self.data.xmin), math.fabs(self.data.xmax)) … … 2404 2410 else: 2405 2411 flag = True 2412 2413 elif self.data == None: 2414 self.qmin_x = _QMIN_DEFAULT 2415 self.qmax_x = _QMAX_DEFAULT 2416 self.num_points = _NPTS_DEFAULT 2417 self.state.npts = self.num_points 2418 2406 2419 elif self.data.__class__.__name__ != "Data2D": 2407 2420 self.qmin_x = min(self.data.x) … … 2418 2431 flag = True 2419 2432 else: 2420 self.qmin_x = _QMIN_DEFAULT 2421 self.qmax_x = _QMAX_DEFAULT 2422 self.num_points = _NPTS_DEFAULT 2423 self.state.npts = self.num_points 2433 flag = False 2424 2434 2425 2435 if flag == False: -
sansview/perspectives/fitting/fitpage.py
re9875db r06aa2eeb 914 914 msg="Please select a Model first..." 915 915 wx.MessageBox(msg, 'Info') 916 wx.PostEvent(self.manager.parent, StatusEvent(status=\ 917 "Draw model: %s"%msg)) 916 918 917 return 919 918 flag = self._update_paramv_on_fit() … … 2279 2278 """ 2280 2279 try: 2281 if event ==None: 2280 if event == None: 2281 output= "-" 2282 elif not numpy.isfinite(event.output): 2282 2283 output= "-" 2283 2284 else:
Note: See TracChangeset
for help on using the changeset viewer.