Changeset 20fa5fe in sasview


Ignore:
Timestamp:
Nov 2, 2017 5:21:47 AM (2 years ago)
Author:
Stuart Prescott <stuart@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
b6b81a3
Parents:
f4775563
Message:

Fix lots more typos in comments and docs

Location:
src
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • src/examples/test_panel2D.py

    r9a5097c r20fa5fe  
    205205            L=Loader() 
    206206             
    207             #Recieves data  
     207            #Receives data 
    208208            try: 
    209209                output=L.load(path) 
  • src/sas/sascalc/dataloader/file_reader_base_class.py

    r1576693 r20fa5fe  
    123123        """ 
    124124        Generic error handler to add an error to the current datainfo to 
    125         propogate the error up the error chain. 
     125        propagate the error up the error chain. 
    126126        :param msg: Error message 
    127127        """ 
     
    325325    def splitline(line): 
    326326        """ 
    327         Splits a line into pieces based on common delimeters 
     327        Splits a line into pieces based on common delimiters 
    328328        :param line: A single line of text 
    329329        :return: list of values 
  • src/sas/sascalc/file_converter/otoko_loader.py

    r0b1a677 r20fa5fe  
    3636 
    3737        Given the paths of two header files, this function will load each axis in 
    38         turn.  If loading is successfull then an instance of the OTOKOData class 
     38        turn.  If loading is successful then an instance of the OTOKOData class 
    3939        will be returned, else an exception will be raised. 
    4040 
  • src/sas/sascalc/fit/AbstractFitEngine.py

    r574adc7 r20fa5fe  
    7878    def get_params(self, fitparams): 
    7979        """ 
    80         return a list of value of paramter to fit 
    81  
    82         :param fitparams: list of paramaters name to fit 
     80        return a list of value of parameter to fit 
     81 
     82        :param fitparams: list of parameters name to fit 
    8383 
    8484        """ 
  • src/sas/sascalc/pr/fit/AbstractFitEngine.py

    r574adc7 r20fa5fe  
    7878    def get_params(self, fitparams): 
    7979        """ 
    80         return a list of value of paramter to fit 
    81  
    82         :param fitparams: list of paramaters name to fit 
     80        return a list of value of parameter to fit 
     81 
     82        :param fitparams: list of parameters name to fit 
    8383 
    8484        """ 
  • src/sas/sasgui/guiframe/data_processor.py

    ra1b8fee r20fa5fe  
    758758        cell pop up context by right clicking on a cell and gives the 
    759759        option to cut, paste, and clear. This will probably be removed in 
    760         future versions and is being superceded by more traditional cut and 
     760        future versions and is being superseded by more traditional cut and 
    761761        paste options. 
    762762        """ 
     
    800800        THIS METHOD IS NOT CURRENTLY USED.  it is part of right click cell 
    801801        context menu which is being removed. This will probably be removed in 
    802         future versions and is being superceded by more traditional cut and 
     802        future versions and is being superseded by more traditional cut and 
    803803        paste options 
    804804        """ 
     
    812812        THIS METHOD IS NOT CURRENTLY USED.  it is part of right click cell 
    813813        context menu which is being removed. This will probably be removed in 
    814         future versions and is being superceded by more traditional cut and 
     814        future versions and is being superseded by more traditional cut and 
    815815        paste options 
    816816        """ 
     
    828828        THIS METHOD IS NOT CURRENTLY USED.  it is part of right click cell 
    829829        context menu which is being removed. This will probably be removed in 
    830         future versions and is being superceded by more traditional cut and 
     830        future versions and is being superseded by more traditional cut and 
    831831        paste options 
    832832        """ 
     
    12331233        """ 
    12341234        Get object represented by the given cells and plot them.  Basically 
    1235         plot the colum in y vs the column in x. 
     1235        plot the column in y vs the column in x. 
    12361236        """ 
    12371237 
     
    19611961        selection_sizer.Add(self.save_to_file, (iy, ix), 
    19621962                            (1, 1), wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 
    1963         #contruction the sizer contaning button 
     1963        #contruction the sizer containing button 
    19641964        button_sizer.Add((20, 20), 1, wx.EXPAND | wx.ADJUST_MINSIZE, 0) 
    19651965 
  • src/sas/sasgui/guiframe/events.py

    r959eb01 r20fa5fe  
    1414#create a panel slicer 
    1515(SlicerPanelEvent, EVT_SLICER_PANEL)   = wx.lib.newevent.NewEvent() 
    16 #print update paramaters for panel slicer 
     16#print update parameers for panel slicer 
    1717(SlicerParamUpdateEvent, EVT_SLICER_PARS_UPDATE)   = wx.lib.newevent.NewEvent() 
    1818#update the slicer from the panel 
  • src/sas/sasgui/guiframe/local_perspectives/data_loader/data_loader.py

    rb963b20 r20fa5fe  
    9090    def can_load_data(self): 
    9191        """ 
    92         if return True, then call handler to laod data 
     92        if return True, then call handler to load data 
    9393        """ 
    9494        return True 
  • src/sas/sasgui/guiframe/local_perspectives/plotting/binder.py

    r463e7ffc r20fa5fe  
    359359        # TODO: Do we need an explicit focus command for keyboard? 
    360360        # TODO: Can we tab between items? 
    361         # TODO: How do unhandled events get propogated to axes, figure and 
     361        # TODO: How do unhandled events get propagated to axes, figure and 
    362362        # TODO: finally to application?  Do we need to implement a full tags 
    363363        # TODO: architecture a la Tk? 
  • src/sas/sasgui/guiframe/local_perspectives/plotting/boxSlicer.py

    r7432acb r20fa5fe  
    216216        """ 
    217217        self.base.thaw_axes() 
    218         # Post paramters 
     218        # Post parameters 
    219219        event = SlicerParameterEvent() 
    220220        event.type = self.__class__.__name__ 
  • src/sas/sasgui/guiframe/local_perspectives/plotting/masking.py

    r45dffa69 r20fa5fe  
    7777    def compute(self): 
    7878        """ 
    79         excuting computation 
     79        executing computation 
    8080        """ 
    8181        elapsed = time.time() - self.starttime 
  • src/sas/sasgui/guiframe/plugin_base.py

    r7432acb r20fa5fe  
    8282    def can_load_data(self): 
    8383        """ 
    84         if return True, then call handler to laod data 
     84        if return True, then call handler to load data 
    8585        """ 
    8686        return False 
  • src/sas/sasgui/guiframe/proxy.py

    ra1b8fee r20fa5fe  
    1717connect() function: 
    1818    - auto detects proxy in windows, osx 
    19     - in ux systems, the http_proxy enviroment variable must be set 
     19    - in ux systems, the http_proxy environment variable must be set 
    2020    - if it fails, try to find the proxy.pac address. 
    2121      - parses the file, and looks up for all possible proxies 
  • src/sas/sasgui/perspectives/calculator/gen_scatter_panel.py

    ra1b8fee r20fa5fe  
    113113    def compute(self): 
    114114        """ 
    115         excuting computation 
     115        executing computation 
    116116        """ 
    117117        #elapsed = time.time() - self.starttime 
  • src/sas/sasgui/perspectives/calculator/resolcal_thread.py

    r959eb01 r20fa5fe  
    4444    def compute(self): 
    4545        """ 
    46         excuting computation 
     46        executing computation 
    4747        """ 
    4848        self.image = map(self.func, self.qx, self.qy, 
  • src/sas/sasgui/perspectives/fitting/fitproblem.py

    r251ef684 r20fa5fe  
    11""" 
    22Inferface containing information to store data, model, range of data, etc... 
    3 and retreive this information. This is an inferface 
     3and retrieve this information. This is an inferface 
    44for a fitProblem i.e relationship between data and model. 
    55""" 
     
    5656        """ 
    5757        :param flag: bool.When flag is 1 get the computer smear value. When 
    58             flag is 0 ingore smear value. 
     58            flag is 0 ignore smear value. 
    5959        """ 
    6060        self.smearer_enable = flag 
     
    305305        """ 
    306306        :param flag: bool.When flag is 1 get the computer smear value. When 
    307             flag is 0 ingore smear value. 
     307            flag is 0 ignore smear value. 
    308308        """ 
    309309        self._smear_on = flag 
  • src/sas/sasgui/perspectives/fitting/fitting.py

    r9706d88 r20fa5fe  
    763763        the current page and set value. 
    764764        :param value: integer 0 or 1 
    765         :param uid: the id related to a page contaning fitting information 
     765        :param uid: the id related to a page containing fitting information 
    766766        """ 
    767767        if uid in self.page_finder.keys(): 
     
    778778        Used by simfitpage.py to reset a parameter given the string constrainst. 
    779779 
    780         :param modelname: the name ot the model for with the parameter 
     780        :param modelname: the name of the model for with the parameter 
    781781                            has to reset 
    782782        :param value: can be a string in this case. 
    783         :param names: the paramter name 
     783        :param names: the parameter name 
    784784        """ 
    785785        sim_page_id = self.sim_page.uid 
     
    797797        name into model name and parameter name example: :: 
    798798 
    799             paramaterset (item) = M1.A 
     799            parameterset (item) = M1.A 
    800800            Will return model_name = M1 , parameter name = A 
    801801 
     
    11171117    def store_data(self, uid, data_list=None, caption=None): 
    11181118        """ 
    1119         Recieve a list of data and store them ans well as a caption of 
     1119        Receive a list of data and store them ans well as a caption of 
    11201120        the fit page where they come from. 
    11211121        :param uid: if related to a fit page 
     
    11961196        for a given interactor. 
    11971197 
    1198         :param event: contains type of slicer , paramaters for updating 
     1198        :param event: contains type of slicer , parameters for updating 
    11991199            the panel and panel_name to find the slicer 's panel concerned. 
    12001200        """ 
  • src/sas/sasgui/perspectives/fitting/fitting_widgets.py

    r959eb01 r20fa5fe  
    6464        selection_sizer.Add(self.data_2d_selected, (iy, ix), 
    6565                           (1, 1), wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 
    66         #contruction the sizer contaning button 
     66        #contruction the sizer containing button 
    6767        button_sizer.Add((20, 20), 1, wx.EXPAND | wx.ADJUST_MINSIZE, 0) 
    6868        button_sizer.Add(button_cancel, 0, 
  • src/sas/sasgui/perspectives/fitting/gpu_options.py

    r3bd677b r20fa5fe  
    8888        self.option_button = {} 
    8989        self.buttons = [] 
    90         #Check if SAS_OPENCL is already set as enviromental variable 
     90        #Check if SAS_OPENCL is already set as environment variable 
    9191        self.sas_opencl = os.environ.get("SAS_OPENCL", "") 
    9292 
  • src/sas/sasgui/perspectives/fitting/simfitpage.py

    r0a3c740 r20fa5fe  
    976976        param_cbox = self.constraints_list[-1].param_cbox 
    977977        param_cbox.Clear() 
    978         # insert only fittable paramaters 
     978        # insert only fittable parameters 
    979979        for param in param_list: 
    980980            param_cbox.Append(str(param), model) 
  • src/sas/sasgui/perspectives/invariant/invariant_details.py

    r959eb01 r20fa5fe  
    422422        except: 
    423423            scale = RECTANGLE_SCALE 
    424             self.warning_msg += "Recieve an invalid scale for %s\n" 
     424            self.warning_msg += "Receive an invalid scale for %s\n" 
    425425            self.warning_msg += "check this value : %s\n" % str(percentage) 
    426426        return  scale 
  • src/sas/sasgui/perspectives/pr/explore_dialog.py

    r959eb01 r20fa5fe  
    9393 
    9494        :TODO: Would be nice to add printing and log/linear scales. 
    95             The current verison of plottools no longer plays well with 
     95            The current version of plottools no longer plays well with 
    9696            plots outside of guiframe. Guiframe team needs to fix this. 
    9797        """ 
  • src/sas/sasgui/plottools/binder.py

    ra1b8fee r20fa5fe  
    366366        # TODO: Do we need an explicit focus command for keyboard? 
    367367        # TODO: Can we tab between items? 
    368         # TODO: How do unhandled events get propogated to axes, figure and 
     368        # TODO: How do unhandled events get propagated to axes, figure and 
    369369        # TODO: finally to application?  Do we need to implement a full tags 
    370370        # TODO: architecture a la Tk? 
  • src/sas/sasgui/plottools/toolbar.py

    r959eb01 r20fa5fe  
    145145    def OnPrintPage(self, page): 
    146146        """ 
    147         Most rudimentry OnPrintPage overide.  instatiates a dc object, gets 
     147        Most rudimentry OnPrintPage override.  instatiates a dc object, gets 
    148148        its size, gets the size of the figure object, scales it to the dc 
    149149        canvas size keeping the aspect ratio intact, then prints as bitmap 
  • src/sas/sasview/sasview.py

    r0225a3f r20fa5fe  
    203203    plugin_dir = os.path.join(sas.get_user_dir(), PLUGIN_MODEL_DIR) 
    204204    os.environ['SAS_MODELPATH'] = plugin_dir 
    205     #Initiliaze enviromental variable with custom setting but only if variable not set 
     205    #Initialize environment variable with custom setting but only if variable not set 
    206206    SAS_OPENCL = sas.get_custom_config().SAS_OPENCL 
    207207    if SAS_OPENCL and "SAS_OPENCL" not in os.environ: 
Note: See TracChangeset for help on using the changeset viewer.