Changeset c7bd6d1 in sasview
- Timestamp:
- Nov 3, 2017 3:17:45 PM (7 years ago)
- Parents:
- 08b9e331 (diff), 5ff08e7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Stuart Prescott <llimeht@…> (11/03/17 15:17:45)
- git-committer:
- GitHub <noreply@…> (11/03/17 15:17:45)
- Location:
- src
- Files:
-
- 1 deleted
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/data_processor.py
r20fa5fe rc7bd6d1 14 14 .. note:: Path to image is: /sasview/src/sas/sasgui/guiframe/media/BatchGridClassLayout.png 15 15 16 .. image:: ../../ user/sasgui/guiframe/BatchGridClassLayout.png16 .. image:: ../../../../../src/sas/sasgui/guiframe/media/BatchGridClassLayout.png 17 17 :align: center 18 18 -
src/examples/test_panel2D.py
r9a5097c r20fa5fe 205 205 L=Loader() 206 206 207 #Rec ieves data207 #Receives data 208 208 try: 209 209 output=L.load(path) -
src/sas/sascalc/calculator/instrument.py
r574adc7 rf4775563 314 314 """ 315 315 To plot the wavelength spactrum 316 : requir ment: matplotlib.pyplot316 : requirement: matplotlib.pyplot 317 317 """ 318 318 try: -
src/sas/sascalc/dataloader/file_reader_base_class.py
r1576693 r20fa5fe 123 123 """ 124 124 Generic error handler to add an error to the current datainfo to 125 prop ogate the error up the error chain.125 propagate the error up the error chain. 126 126 :param msg: Error message 127 127 """ … … 325 325 def splitline(line): 326 326 """ 327 Splits a line into pieces based on common delim eters327 Splits a line into pieces based on common delimiters 328 328 :param line: A single line of text 329 329 :return: list of values -
src/sas/sascalc/file_converter/otoko_loader.py
r0b1a677 r20fa5fe 36 36 37 37 Given the paths of two header files, this function will load each axis in 38 turn. If loading is successful lthen an instance of the OTOKOData class38 turn. If loading is successful then an instance of the OTOKOData class 39 39 will be returned, else an exception will be raised. 40 40 -
src/sas/sascalc/fit/AbstractFitEngine.py
r574adc7 r20fa5fe 78 78 def get_params(self, fitparams): 79 79 """ 80 return a list of value of param ter to fit81 82 :param fitparams: list of param aters name to fit80 return a list of value of parameter to fit 81 82 :param fitparams: list of parameters name to fit 83 83 84 84 """ -
src/sas/sascalc/pr/c_extensions/Cinvertor.c
rd04ac05 ra52f32f 735 735 736 736 const char get_peaks_doc[] = 737 "Returns the number of peaks in the output P(r) distr ubution\n"737 "Returns the number of peaks in the output P(r) distribution\n" 738 738 "for the given set of coefficients.\n" 739 739 " @param args: c-parameters\n" -
src/sas/sascalc/pr/fit/AbstractFitEngine.py
r574adc7 r20fa5fe 78 78 def get_params(self, fitparams): 79 79 """ 80 return a list of value of param ter to fit81 82 :param fitparams: list of param aters name to fit80 return a list of value of parameter to fit 81 82 :param fitparams: list of parameters name to fit 83 83 84 84 """ -
src/sas/sasgui/guiframe/events.py
r959eb01 r20fa5fe 14 14 #create a panel slicer 15 15 (SlicerPanelEvent, EVT_SLICER_PANEL) = wx.lib.newevent.NewEvent() 16 #print update param aters for panel slicer16 #print update parameers for panel slicer 17 17 (SlicerParamUpdateEvent, EVT_SLICER_PARS_UPDATE) = wx.lib.newevent.NewEvent() 18 18 #update the slicer from the panel -
src/sas/sasgui/guiframe/local_perspectives/data_loader/data_loader.py
rb963b20 r20fa5fe 90 90 def can_load_data(self): 91 91 """ 92 if return True, then call handler to l aod data92 if return True, then call handler to load data 93 93 """ 94 94 return True -
src/sas/sasgui/guiframe/local_perspectives/plotting/binder.py
r463e7ffc r20fa5fe 359 359 # TODO: Do we need an explicit focus command for keyboard? 360 360 # TODO: Can we tab between items? 361 # TODO: How do unhandled events get prop ogated to axes, figure and361 # TODO: How do unhandled events get propagated to axes, figure and 362 362 # TODO: finally to application? Do we need to implement a full tags 363 363 # TODO: architecture a la Tk? -
src/sas/sasgui/guiframe/local_perspectives/plotting/boxSlicer.py
r7432acb r20fa5fe 216 216 """ 217 217 self.base.thaw_axes() 218 # Post param ters218 # Post parameters 219 219 event = SlicerParameterEvent() 220 220 event.type = self.__class__.__name__ -
src/sas/sasgui/guiframe/local_perspectives/plotting/masking.py
r45dffa69 r20fa5fe 77 77 def compute(self): 78 78 """ 79 ex cuting computation79 executing computation 80 80 """ 81 81 elapsed = time.time() - self.starttime -
src/sas/sasgui/guiframe/plugin_base.py
r7432acb r20fa5fe 82 82 def can_load_data(self): 83 83 """ 84 if return True, then call handler to l aod data84 if return True, then call handler to load data 85 85 """ 86 86 return False -
src/sas/sasgui/guiframe/proxy.py
ra1b8fee r20fa5fe 17 17 connect() function: 18 18 - auto detects proxy in windows, osx 19 - in ux systems, the http_proxy enviro ment variable must be set19 - in ux systems, the http_proxy environment variable must be set 20 20 - if it fails, try to find the proxy.pac address. 21 21 - parses the file, and looks up for all possible proxies -
src/sas/sasgui/perspectives/calculator/gen_scatter_panel.py
ra1b8fee r20fa5fe 113 113 def compute(self): 114 114 """ 115 ex cuting computation115 executing computation 116 116 """ 117 117 #elapsed = time.time() - self.starttime -
src/sas/sasgui/perspectives/calculator/resolcal_thread.py
r959eb01 r20fa5fe 44 44 def compute(self): 45 45 """ 46 ex cuting computation46 executing computation 47 47 """ 48 48 self.image = map(self.func, self.qx, self.qy, -
src/sas/sasgui/perspectives/fitting/fitproblem.py
r251ef684 r20fa5fe 1 1 """ 2 2 Inferface containing information to store data, model, range of data, etc... 3 and retr eive this information. This is an inferface3 and retrieve this information. This is an inferface 4 4 for a fitProblem i.e relationship between data and model. 5 5 """ … … 56 56 """ 57 57 :param flag: bool.When flag is 1 get the computer smear value. When 58 flag is 0 i ngore smear value.58 flag is 0 ignore smear value. 59 59 """ 60 60 self.smearer_enable = flag … … 305 305 """ 306 306 :param flag: bool.When flag is 1 get the computer smear value. When 307 flag is 0 i ngore smear value.307 flag is 0 ignore smear value. 308 308 """ 309 309 self._smear_on = flag -
src/sas/sasgui/perspectives/fitting/fitting.py
r9706d88 r20fa5fe 763 763 the current page and set value. 764 764 :param value: integer 0 or 1 765 :param uid: the id related to a page conta ning fitting information765 :param uid: the id related to a page containing fitting information 766 766 """ 767 767 if uid in self.page_finder.keys(): … … 778 778 Used by simfitpage.py to reset a parameter given the string constrainst. 779 779 780 :param modelname: the name o tthe model for with the parameter780 :param modelname: the name of the model for with the parameter 781 781 has to reset 782 782 :param value: can be a string in this case. 783 :param names: the param ter name783 :param names: the parameter name 784 784 """ 785 785 sim_page_id = self.sim_page.uid … … 797 797 name into model name and parameter name example: :: 798 798 799 param aterset (item) = M1.A799 parameterset (item) = M1.A 800 800 Will return model_name = M1 , parameter name = A 801 801 … … 1117 1117 def store_data(self, uid, data_list=None, caption=None): 1118 1118 """ 1119 Rec ieve a list of data and store them ans well as a caption of1119 Receive a list of data and store them ans well as a caption of 1120 1120 the fit page where they come from. 1121 1121 :param uid: if related to a fit page … … 1196 1196 for a given interactor. 1197 1197 1198 :param event: contains type of slicer , param aters for updating1198 :param event: contains type of slicer , parameters for updating 1199 1199 the panel and panel_name to find the slicer 's panel concerned. 1200 1200 """ -
src/sas/sasgui/perspectives/fitting/fitting_widgets.py
r959eb01 r20fa5fe 64 64 selection_sizer.Add(self.data_2d_selected, (iy, ix), 65 65 (1, 1), wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 66 #contruction the sizer conta ning button66 #contruction the sizer containing button 67 67 button_sizer.Add((20, 20), 1, wx.EXPAND | wx.ADJUST_MINSIZE, 0) 68 68 button_sizer.Add(button_cancel, 0, -
src/sas/sasgui/perspectives/fitting/gpu_options.py
r3bd677b r20fa5fe 88 88 self.option_button = {} 89 89 self.buttons = [] 90 #Check if SAS_OPENCL is already set as enviro mentalvariable90 #Check if SAS_OPENCL is already set as environment variable 91 91 self.sas_opencl = os.environ.get("SAS_OPENCL", "") 92 92 -
src/sas/sasgui/perspectives/fitting/simfitpage.py
r0a3c740 r20fa5fe 976 976 param_cbox = self.constraints_list[-1].param_cbox 977 977 param_cbox.Clear() 978 # insert only fittable param aters978 # insert only fittable parameters 979 979 for param in param_list: 980 980 param_cbox.Append(str(param), model) -
src/sas/sasgui/perspectives/invariant/invariant_details.py
r959eb01 r20fa5fe 422 422 except: 423 423 scale = RECTANGLE_SCALE 424 self.warning_msg += "Rec ieve an invalid scale for %s\n"424 self.warning_msg += "Receive an invalid scale for %s\n" 425 425 self.warning_msg += "check this value : %s\n" % str(percentage) 426 426 return scale -
src/sas/sasgui/perspectives/pr/explore_dialog.py
r959eb01 r20fa5fe 93 93 94 94 :TODO: Would be nice to add printing and log/linear scales. 95 The current ver ison of plottools no longer plays well with95 The current version of plottools no longer plays well with 96 96 plots outside of guiframe. Guiframe team needs to fix this. 97 97 """ -
src/sas/sasgui/plottools/binder.py
ra1b8fee r20fa5fe 366 366 # TODO: Do we need an explicit focus command for keyboard? 367 367 # TODO: Can we tab between items? 368 # TODO: How do unhandled events get prop ogated to axes, figure and368 # TODO: How do unhandled events get propagated to axes, figure and 369 369 # TODO: finally to application? Do we need to implement a full tags 370 370 # TODO: architecture a la Tk? -
src/sas/sasgui/plottools/toolbar.py
r959eb01 r20fa5fe 145 145 def OnPrintPage(self, page): 146 146 """ 147 Most rudimentry OnPrintPage over ide. instatiates a dc object, gets147 Most rudimentry OnPrintPage override. instatiates a dc object, gets 148 148 its size, gets the size of the figure object, scales it to the dc 149 149 canvas size keeping the aspect ratio intact, then prints as bitmap -
src/sas/sasview/sasview.py
r0225a3f r20fa5fe 203 203 plugin_dir = os.path.join(sas.get_user_dir(), PLUGIN_MODEL_DIR) 204 204 os.environ['SAS_MODELPATH'] = plugin_dir 205 #Initi liaze enviromentalvariable with custom setting but only if variable not set205 #Initialize environment variable with custom setting but only if variable not set 206 206 SAS_OPENCL = sas.get_custom_config().SAS_OPENCL 207 207 if SAS_OPENCL and "SAS_OPENCL" not in os.environ:
Note: See TracChangeset
for help on using the changeset viewer.