- Timestamp:
- Sep 27, 2017 10:07:02 AM (7 years ago)
- Branches:
- 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
- Children:
- fc4fec8
- Parents:
- adc49fc
- Location:
- src/sas
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/GUITests.py
r464cd07 r01cda57 37 37 from Calculators.UnitTesting import SLDCalculatorTest 38 38 from Calculators.UnitTesting import SlitSizeCalculatorTest 39 from Calculators.UnitTesting import ResolutionCalculatorPanelTest 39 40 40 41 # Utilities … … 92 93 unittest.makeSuite(SLDCalculatorTest.SLDCalculatorTest, 'test'), 93 94 unittest.makeSuite(SlitSizeCalculatorTest.SlitSizeCalculatorTest, 'test'), 95 unittest.makeSuite(ResolutionCalculatorPanelTest.ResolutionCalculatorPanelTest, 'test'), 94 96 95 97 # Perspectives … … 100 102 unittest.makeSuite(FitPageTest.FitPageTest, 'test'), 101 103 unittest.makeSuite(FittingOptionsTest.FittingOptionsTest, 'test'), 102 )104 ) 103 105 return unittest.TestSuite(suites) 104 106 -
src/sas/qtgui/MainWindow/GuiManager.py
r3c8242c r01cda57 30 30 from sas.qtgui.Calculators.SlitSizeCalculator import SlitSizeCalculator 31 31 from sas.qtgui.Calculators.GenericScatteringCalculator import GenericScatteringCalculator 32 from sas.qtgui.Calculators.ResolutionCalculatorPanel import ResolutionCalculatorPanel 33 32 34 33 35 # Perspectives … … 136 138 self.SLDCalculator = SldPanel(self) 137 139 self.DVCalculator = DensityPanel(self) 138 #self.KIESSIGCalculator = DensityPanel(self)#KiessigPanel(self)139 140 self.KIESSIGCalculator = KiessigPanel(self) 140 141 self.SlitSizeCalculator = SlitSizeCalculator(self) 141 142 self.GENSASCalculator = GenericScatteringCalculator(self) 143 self.ResolutionCalculator = ResolutionCalculatorPanel(self) 142 144 143 145 def statusBarSetup(self): … … 556 558 """ 557 559 """ 558 print("actionSAS_Resolution_Estimator TRIGGERED") 559 pass 560 self.ResolutionCalculator.show() 560 561 561 562 def actionGeneric_Scattering_Calculator(self): -
src/sas/qtgui/Plotting/Plotter2D.py
rdc5ef15 r01cda57 429 429 430 430 im = self.ax.imshow(output, interpolation='nearest', 431 origin='lower',431 # origin='lower', 432 432 vmin=zmin_temp, vmax=zmax_temp, 433 433 cmap=self.cmap, … … 494 494 """ 495 495 Replace data in current chart. 496 This effect lvely refreshes the chart with changes to one of its plots496 This effectively refreshes the chart with changes to one of its plots 497 497 """ 498 498 self.plot(data=new_plot) -
src/sas/sascalc/calculator/resolution_calculator.py
r7432acb r01cda57 93 93 : qy_value: y component of q 94 94 """ 95 95 96 # make sure to update all the variables need. 96 97 # except lambda, dlambda, and intensity … … 152 153 sig2_list[ind], sigr_list[ind], 153 154 qx_min, qx_max, qy_min, qy_max, coord) 154 # this is the case of q being outside the detector155 #if numpy.all(out==0.0):156 # continue157 155 image = out 158 156 # set variance as sigmas … … 186 184 sigma_2 = 0 187 185 sigma1d = 0 186 188 187 if len(self.image) > 0: 189 188 self.image += image_out … … 192 191 193 192 # plot image 194 return self. plot_image(self.image)193 return self.image # self.plot_image(self.image) 195 194 196 195 def setup_tof(self, wavelength, wavelength_spread): … … 214 213 coord='cartesian', tof=False): 215 214 """ 216 Compute the Q resol tuion in || and + direction of 2D215 Compute the Q resolution in || and + direction of 2D 217 216 : qx_value: x component of q 218 217 : qy_value: y component of q -
src/sas/sasgui/perspectives/calculator/resolution_calculator_panel.py
r7432acb r01cda57 934 934 def _sigma_strings(self): 935 935 """ 936 Recode sigmas as strin s936 Recode sigmas as strings 937 937 """ 938 938 sigma_r = self.format_number(self.resolution.sigma_1) … … 1208 1208 source_hint += "Mass of %s: m = %s [g]" % \ 1209 1209 (selection, str(self.resolution.get_neutron_mass())) 1210 # source_tip.SetTip(source_hint)1210 # source_tip.SetTip(source_hint) 1211 1211 self.mass_txt.ToolTip.SetTip(source_hint) 1212 1212
Note: See TracChangeset
for help on using the changeset viewer.