Ignore:
Timestamp:
May 2, 2012 11:03:55 AM (12 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:
3aab96b
Parents:
6246e00
Message:

let users be able to delete default custom models (WIN app only)

File:
1 edited

Legend:

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

    re9bd127 r19e614a  
    3232    ## YOU CAN MODIFY THE LINE BELLOW. CHANGE ONLY WORDS BETWEEN " "  
    3333    ## TO RENAME YOUR MODEL: THIS NAME IS WHAT YOU SEE ON GUI. 
    34     name = "polynomial5"        ## <----- NAME OF THE MODEL    
     34    name = "polynomial5"        ## <----- FILE NAME (NAME OF THE MODEL)    
    3535                                 
    3636    def __init__(self):      ##DO NOT CHANGE THIS LINE!!! 
     
    4848        self.params['E'] = 0.0       ## <-----                   
    4949        self.params['F'] = 0.0       ## <-----    
    50          
     50        ## YOU CAN MODIFY THE LINE BELLOW.MODIFY WORDS BETWEEN """   """  ONLY!!!! 
     51        self.description = """ 
     52            a + b * x + c * math.pow(x,2) + d * math.pow(x,3) \n 
     53             + e * math.pow(x,4) + f * math.pow(x,5)   
     54        """                        ## <-----    
    5155        ## DEFINE DEFAULT DETAILS 
    5256        self.set_details()      ##DO NOT DELETE OR CHANGE THIS LINE!!! 
Note: See TracChangeset for help on using the changeset viewer.