Changeset 68a921f in sasview for fittingview/src/sans/perspectives


Ignore:
Timestamp:
Oct 3, 2011 3:28:36 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
f64a4b7
Parents:
3fb5e68
Message:

working on the poly function with copy/paste

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    ra6d3553 r68a921f  
    28812881        # go through the str params 
    28822882        for item in param:  
     2883            disfunc = '' 
     2884            try: 
     2885                if item[7].__class__.__name__ == 'ComboBox': 
     2886                    disfunc = item[7].GetLabel() 
     2887            except: 
     2888                disfunc = '' 
     2889                pass 
    28832890            # 2D 
    28842891            if self.data.__class__.__name__== "Data2D": 
     
    28912898                    name = item[1] 
    28922899                    value = item[2].GetValue() 
     2900                else: 
     2901                    disfunc = '' 
    28932902            # add to the content 
    2894             content += name + ',' + value + ':' 
    2895              
     2903            if disfunc != '': 
     2904                disfunc = ',' + disfunc 
     2905            content += name + ',' + value + disfunc + ':' 
     2906 
    28962907        return content 
    28972908    
     
    29402951                # Transfer the text to content[dictionary] 
    29412952                context[name] = value 
    2942          
     2953            # ToDo: PlugIn this poly disp function for pasting 
     2954            if len(line) == 3: 
     2955                poly_func = item[2] 
     2956            else: 
     2957                poly_func = None 
    29432958        # Do it if params exist         
    29442959        if  self.parameters != []: 
Note: See TracChangeset for help on using the changeset viewer.