Changes in / [2ffe241:7caf3e5] in sasview
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r18e7309 r1e13b53 206 206 ) 207 207 208 209 208 # sas.sascalc.pr 210 209 srcdir = os.path.join("src", "sas", "sascalc", "pr", "c_extensions") … … 229 228 ) ) 230 229 230 #sas.sascalc.corfunc 231 package_dir["sas.sascalc.corfunc"] = os.path.join("src", "sas", "sascalc", "corfunc") 232 packages.extend(["sas.sascalc.corfunc"]) 233 231 234 # sas.sascalc.fit 232 235 package_dir["sas.sascalc.fit"] = os.path.join("src", "sas", "sascalc", "fit") … … 237 240 package_dir["sas.sasgui.perspectives.pr"] = os.path.join("src", "sas", "sasgui", "perspectives", "pr") 238 241 packages.extend(["sas.sasgui.perspectives","sas.sasgui.perspectives.pr"]) 239 package_data["sas.sasgui.perspectives.pr"] = [' images/*']242 package_data["sas.sasgui.perspectives.pr"] = ['media/*'] 240 243 241 244 package_dir["sas.sasgui.perspectives.invariant"] = os.path.join("src", "sas", "sasgui", "perspectives", "invariant") … … 250 253 packages.extend(["sas.sasgui.perspectives", "sas.sasgui.perspectives.calculator"]) 251 254 package_data['sas.sasgui.perspectives.calculator'] = ['images/*', 'media/*'] 255 256 package_dir["sas.sasgui.perspectives.corfunc"] = os.path.join("src", "sas", "sasgui", "perspectives", "corfunc") 257 packages.extend(["sas.sasgui.perspectives.corfunc"]) 258 package_data['sas.sasgui.perspectives.corfunc'] = ['media/*'] 259 260 package_dir["sas.sasgui.perspectives.file_converter"] = os.path.join("src", "sas", "sasgui", "perspectives", "file_converter") 261 packages.extend(["sas.sasgui.perspectives.file_converter"]) 262 package_data['sas.sasgui.perspectives.file_converter'] = ['media/*'] 252 263 253 264 # Data util -
src/sas/sascalc/dataloader/readers/sesans_reader.py
rb5db35d r9525358 136 136 output.x, output.x_unit = self._unit_conversion(x, lam_unit, default_z_unit) 137 137 output.y = y 138 output.y_unit = '\AA^{-2} cm^{-1}' # output y_unit added138 output.y_unit = r'\AA^{-2} cm^{-1}' # output y_unit added 139 139 output.dx, output.dx_unit = self._unit_conversion(dx, lam_unit, default_z_unit) 140 140 output.dy = dy 141 141 output.lam, output.lam_unit = self._unit_conversion(lam, lam_unit, default_z_unit) 142 142 output.dlam, output.dlam_unit = self._unit_conversion(dlam, lam_unit, default_z_unit) 143 144 output.xaxis(r"\rm{z}", output.x_unit) 145 output.yaxis(r"\rm{ln(P)/(t \lambda^2)}", output.y_unit) # Adjust label to ln P/(lam^2 t), remove lam column refs 143 146 144 output.xaxis("\\rm{z}", output.x_unit)145 output.yaxis("\\rm{ln(P)/(t \lambda^2)}", output.y_unit) # Adjust label to ln P/(lam^2 t), remove lam column refs146 147 # Store loading process information 147 148 output.meta_data['loader'] = self.type_name … … 151 152 zaccept_unit_split = paramnames[7].split("[") 152 153 zaccept_unit = zaccept_unit_split[1].replace("]","") 153 if zaccept_unit.strip() == '\AA^-1' or zaccept_unit.strip() =='\A^-1':154 if zaccept_unit.strip() == r'\AA^-1' or zaccept_unit.strip() == r'\A^-1': 154 155 zaccept_unit = "1/A" 155 156 output.sample.zacceptance=(float(paramvals[7]),zaccept_unit) -
src/sas/sasgui/perspectives/fitting/fitpage.py
r24fd27a r3d55219 362 362 self.Bind(wx.EVT_RADIOBUTTON, self.onSlitSmear, 363 363 id=self.slit_smearer.GetId()) 364 self. enable_smearer.SetValue(True)364 self.disable_smearer.SetValue(True) 365 365 366 366 sizer_smearer.Add(self.disable_smearer, 0, wx.LEFT, 10) … … 1934 1934 1935 1935 # more disables for 2D 1936 di_flag = False 1937 dq_flag = False 1936 1938 if self.data.__class__.__name__ == "Data2D" or \ 1937 1939 self.enable2D: … … 1939 1941 self.pinhole_smearer.Enable(True) 1940 1942 self.default_mask = copy.deepcopy(self.data.mask) 1941 if self.data.err_data is None or\ 1942 numpy.all(err == 1 for err in self.data.err_data) or \ 1943 not numpy.any(self.data.err_data): 1944 self.dI_didata.Enable(False) 1945 self.dI_noweight.SetValue(True) 1946 self.weightbt_string = self.dI_noweight.GetLabelText() 1947 else: 1948 self.dI_didata.Enable(True) 1949 self.dI_didata.SetValue(True) 1950 self.weightbt_string = self.dI_didata.GetLabelText() 1943 if self.data.err_data is not None \ 1944 and numpy.any(self.data.err_data): 1945 di_flag = True 1946 if self.data.dqx_data is not None \ 1947 and numpy.any(self.data.dqx_data): 1948 dq_flag = True 1951 1949 else: 1952 1950 self.slit_smearer.Enable(True) 1953 1951 self.pinhole_smearer.Enable(True) 1954 1955 if self.data.dy is None or\ 1956 numpy.all(self.data.dy == 1) or\ 1957 not numpy.any(self.data.dy): 1958 self.dI_didata.Enable(False) 1959 self.dI_noweight.SetValue(True) 1960 self.weightbt_string = self.dI_noweight.GetLabelText() 1961 else: 1962 self.dI_didata.Enable(True) 1963 self.dI_didata.SetValue(True) 1964 self.weightbt_string = self.dI_didata.GetLabelText() 1952 if self.data.dy is not None and numpy.any(self.data.dy): 1953 di_flag = True 1954 if self.data.dx is not None and numpy.any(self.data.dx): 1955 dq_flag = True 1956 elif self.data.dxl is not None and numpy.any(self.data.dxl): 1957 dq_flag = True 1958 1959 if dq_flag: 1960 self.enable_smearer.Enable(True) 1961 self.enable_smearer.SetValue(True) 1962 self.disable_smearer.SetValue(False) 1963 else: 1964 self.enable_smearer.Disable() 1965 self.disable_smearer.Enable(True) 1966 self.disable_smearer.SetValue(True) 1967 1968 if di_flag: 1969 self.dI_didata.Enable(True) 1970 self.dI_didata.SetValue(True) 1971 self.weightbt_string = self.dI_didata.GetLabelText() 1972 else: 1973 self.dI_didata.Enable(False) 1974 self.dI_noweight.SetValue(True) 1975 self.weightbt_string = self.dI_noweight.GetLabelText() 1976 1965 1977 # Enable weighting radio buttons 1966 1978 self.dI_noweight.Enable(True) … … 2004 2016 self.EditMask_title.Disable() 2005 2017 2018 self.onSmear(event=None) 2006 2019 self.on_set_focus(None) 2007 2020 self.Refresh()
Note: See TracChangeset
for help on using the changeset viewer.