Changes in / [7caf3e5:2ffe241] in sasview
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r1e13b53 r18e7309 206 206 ) 207 207 208 208 209 # sas.sascalc.pr 209 210 srcdir = os.path.join("src", "sas", "sascalc", "pr", "c_extensions") … … 228 229 ) ) 229 230 230 #sas.sascalc.corfunc231 package_dir["sas.sascalc.corfunc"] = os.path.join("src", "sas", "sascalc", "corfunc")232 packages.extend(["sas.sascalc.corfunc"])233 234 231 # sas.sascalc.fit 235 232 package_dir["sas.sascalc.fit"] = os.path.join("src", "sas", "sascalc", "fit") … … 240 237 package_dir["sas.sasgui.perspectives.pr"] = os.path.join("src", "sas", "sasgui", "perspectives", "pr") 241 238 packages.extend(["sas.sasgui.perspectives","sas.sasgui.perspectives.pr"]) 242 package_data["sas.sasgui.perspectives.pr"] = [' media/*']239 package_data["sas.sasgui.perspectives.pr"] = ['images/*'] 243 240 244 241 package_dir["sas.sasgui.perspectives.invariant"] = os.path.join("src", "sas", "sasgui", "perspectives", "invariant") … … 253 250 packages.extend(["sas.sasgui.perspectives", "sas.sasgui.perspectives.calculator"]) 254 251 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/*']263 252 264 253 # Data util -
src/sas/sascalc/dataloader/readers/sesans_reader.py
r9525358 rb5db35d 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 = r'\AA^{-2} cm^{-1}' # output y_unit added138 output.y_unit = '\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 refs146 143 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 refs 147 146 # Store loading process information 148 147 output.meta_data['loader'] = self.type_name … … 152 151 zaccept_unit_split = paramnames[7].split("[") 153 152 zaccept_unit = zaccept_unit_split[1].replace("]","") 154 if zaccept_unit.strip() == r'\AA^-1' or zaccept_unit.strip() == r'\A^-1':153 if zaccept_unit.strip() == '\AA^-1' or zaccept_unit.strip() == '\A^-1': 155 154 zaccept_unit = "1/A" 156 155 output.sample.zacceptance=(float(paramvals[7]),zaccept_unit) -
src/sas/sasgui/perspectives/fitting/fitpage.py
r3d55219 r24fd27a 362 362 self.Bind(wx.EVT_RADIOBUTTON, self.onSlitSmear, 363 363 id=self.slit_smearer.GetId()) 364 self. disable_smearer.SetValue(True)364 self.enable_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 = False1937 dq_flag = False1938 1936 if self.data.__class__.__name__ == "Data2D" or \ 1939 1937 self.enable2D: … … 1941 1939 self.pinhole_smearer.Enable(True) 1942 1940 self.default_mask = copy.deepcopy(self.data.mask) 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 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() 1949 1951 else: 1950 1952 self.slit_smearer.Enable(True) 1951 1953 self.pinhole_smearer.Enable(True) 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 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() 1977 1965 # Enable weighting radio buttons 1978 1966 self.dI_noweight.Enable(True) … … 2016 2004 self.EditMask_title.Disable() 2017 2005 2018 self.onSmear(event=None)2019 2006 self.on_set_focus(None) 2020 2007 self.Refresh()
Note: See TracChangeset
for help on using the changeset viewer.