- Timestamp:
- Jan 8, 2019 2:48:15 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
- Children:
- 722c425
- Parents:
- aa9928e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
raa9928e rf0c569d 1651 1651 #If so check for pinhole vs slit by veryfing whehter dx or dxl or dxw 1652 1652 #have data (currently sasview only supports either dx or dxl/dxw but 1653 #not both simultaneously) and as,for 2D, are non zero .1653 #not both simultaneously) and, as for 2D, are non zero . 1654 1654 #Otherwise no smearing can be applied using smear from data (a Gaussian 1655 1655 #width of zero will cause a divide by zero error) … … 1660 1660 #report in % for display makes more sense than absolute value 1661 1661 #for pinhole smearing .. but keep old names of dq_l 1662 self.dq_l = data.dx[0] / data.x[0] * 1001663 self.dq_r = data.dx[-1] / data.x[-1] * 1001662 self.dq_l = format_number(data.dx[0] / data.x[0] * 100,1) 1663 self.dq_r = format_number(data.dx[-1] / data.x[-1] * 100,1) 1664 1664 #If not, is it valid 1D slit resolution data? 1665 1665 elif (data.dxl is not None or data.dxw is not None) \ … … 1668 1668 #for slit units of 1/A make most sense 1669 1669 if data.dxl is not None and np.all(data.dxl, 0): 1670 self.dq_l = data.dxl[0]1670 self.dq_l = format_number(data.dxl[0],1) 1671 1671 if data.dxw is not None and np.all(data.dxw, 0): 1672 self.dq_r = data.dxw[0]1672 self.dq_r = format_number(data.dxw[0],1) 1673 1673 #otherwise log that the data did not conatain resolution info 1674 1674 else:
Note: See TracChangeset
for help on using the changeset viewer.