Changeset cf76ca74 in sasview for sansview


Ignore:
Timestamp:
Nov 4, 2009 1:04:11 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
c99a6c5
Parents:
155c088
Message:

add comment for get_context_menu function into fitting.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    r155c088 rcf76ca74  
    182182    def get_context_menu(self, graph=None): 
    183183        """ 
    184             Get the context menu items available for P(r) 
     184            Get the context menu items available for P(r).them allow fitting option 
     185            for Data2D and Data1D only. 
     186             
    185187            @param graph: the Graph object to which we attach the context menu 
    186188            @return: a list of menu items with call-back function 
     189            @note: if Data1D was generated from Theory1D   
     190                    the fitting option is not allowed 
    187191        """ 
    188192        self.graph = graph 
     
    203207                    if item.name !="$I_{obs}(q)$" and item.name !="$P_{fit}(r)$": 
    204208                        if hasattr(item, "group_id"): 
     209                            # if is_data is true , this in an actual data loaded 
     210                            #else it is a data created from a theory model 
    205211                            if hasattr(item,"is_data"): 
    206212                                if item.is_data: 
Note: See TracChangeset for help on using the changeset viewer.