Changeset 204f628 in sasview for src


Ignore:
Timestamp:
Aug 23, 2016 4:22:47 AM (8 years ago)
Author:
lewis
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
839e5e3
Parents:
f56770ef
Message:

Add comments/docstrings

Location:
src/sas/sasgui/perspectives/corfunc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/corfunc/corfunc.py

    r6ffa0dd r204f628  
    167167            group_id = GROUP_ID_IQ_DATA 
    168168            if label == IQ_EXTRAPOLATED_DATA_LABEL: 
     169                # Show the extrapolation as a curve instead of points 
    169170                new_plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 
    170171        elif label == TRANSFORM_LABEL: 
     
    172173            new_plot.yaxis("{\\Gamma}", '') 
    173174            group_id = GROUP_ID_TRANSFORM 
     175            # Show the transformation as a curve instead of points 
    174176            new_plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 
    175177        new_plot.id = label 
     
    188190                leftdown=True) 
    189191        if label == IQ_EXTRAPOLATED_DATA_LABEL: 
     192            # Zoom in to the region we're interested in 
    190193            xlim = (min(self.corfunc_panel._extrapolated_data.x), self.corfunc_panel.qmax[1]*1.2) 
    191194            wx.CallAfter(wx.PostEvent, self.parent, PlotLimitEvent(id=IQ_DATA_LABEL, group_id=GROUP_ID_IQ_DATA, xlim=xlim)) 
     
    202205            return 
    203206        data = panel.plots[panel.graph.selected_plottable] 
    204         print "Data id is: {}".format(data.id) 
    205207        self.set_data([data]) 
  • src/sas/sasgui/perspectives/corfunc/corfunc_panel.py

    reb886c2 r204f628  
    178178 
    179179    def radio_changed(self, event=None): 
     180        """ 
     181        Called when the "Transform type" radio button are changed 
     182        """ 
    180183        if event is not None: 
    181184            self.transform_type = event.GetEventObject().GetName() 
     
    275278 
    276279    def extract_parameters(self, event=None): 
     280        """ 
     281        Called when "Extract Parameters" is clicked 
     282        """ 
    277283        try: 
    278284            params = self._calculator.extract_parameters(self._transformed_data) 
     
    329335 
    330336    def set_extrapolation_params(self, params=None): 
     337        """ 
     338        Displays the value of the parameters calculated in the extrapolation 
     339        """ 
    331340        if params is None: 
    332341            # Reset outputs 
     
    341350 
    342351    def set_extracted_params(self, params=None, reset=False): 
     352        """ 
     353        Displays the values of the parameters extracted from the Fourier 
     354        transform 
     355        """ 
    343356        self.extracted_params = params 
    344357        error = False 
     
    369382 
    370383    def _compute_background(self, event=None): 
     384        """ 
     385        Compute the background level based on the position of the upper q bars 
     386        """ 
    371387        if event is not None: 
    372388            event.Skip() 
Note: See TracChangeset for help on using the changeset viewer.