Changeset 19e614a in sasview for fittingview/src/sans/perspectives/fitting/plugin_models
- Timestamp:
- May 2, 2012 11:03:55 AM (13 years ago)
- 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
- Location:
- fittingview/src/sans/perspectives/fitting/plugin_models
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/plugin_models/polynominal5.py
re9bd127 r19e614a 32 32 ## YOU CAN MODIFY THE LINE BELLOW. CHANGE ONLY WORDS BETWEEN " " 33 33 ## TO RENAME YOUR MODEL: THIS NAME IS WHAT YOU SEE ON GUI. 34 name = "polynomial5" ## <----- NAME OF THE MODEL34 name = "polynomial5" ## <----- FILE NAME (NAME OF THE MODEL) 35 35 36 36 def __init__(self): ##DO NOT CHANGE THIS LINE!!! … … 48 48 self.params['E'] = 0.0 ## <----- 49 49 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 """ ## <----- 51 55 ## DEFINE DEFAULT DETAILS 52 56 self.set_details() ##DO NOT DELETE OR CHANGE THIS LINE!!! -
fittingview/src/sans/perspectives/fitting/plugin_models/sph_bessel_jn.py
re9bd127 r19e614a 36 36 ## YOU CAN MODIFY THE LINE BELLOW. CHANGE ONLY WORDS BETWEEN " " 37 37 ## TO RENAME YOUR MODEL 38 name = " C*sph_jn(Ax+B)+D" ## <----- NAME OF THE MODEL38 name = "sph_bessel_jn" ## <----- FILE NAME (NAME OF THE MODEL) 39 39 40 40 def __init__(self): ##DO NOT CHANGE THIS LINE!!! -
fittingview/src/sans/perspectives/fitting/plugin_models/sum_Ap1_1_Ap2.py
r2b4c8ca r19e614a 43 43 Note: P(Q) refers to 'form factor' model. 44 44 """ 45 name = " "45 name = "sum_Ap1_1_Ap2" ## <----- FILE NAME (NAME OF THE MODEL) 46 46 def __init__(self): 47 Model1DPlugin.__init__(self, name= '')47 Model1DPlugin.__init__(self, name=self.name) 48 48 """ 49 49 :param p_model1: a form factor, P(Q) … … 53 53 p_model2 = P2() 54 54 ## Setting model name model description 55 self.description="" 56 self.name = self._get_name(p_model1.name, p_model2.name) 57 self.description = p_model1.name+"\n" 58 self.description += p_model2.name+"\n" 55 self.description = "" 59 56 self.fill_description(p_model1, p_model2) 60 57 … … 391 388 """ 392 389 description = "" 393 description +="This model gives the summation of %s and %s.\n"% \390 description +="This model gives the summation of (A*%s) and ((1-A)*%s).\n"% \ 394 391 ( p_model1.name, p_model2.name ) 395 392 self.description += description -
fittingview/src/sans/perspectives/fitting/plugin_models/sum_p1_p2.py
r0e62f0f r19e614a 48 48 Note: P(Q) refers to 'form factor' model. 49 49 """ 50 name = " "50 name = "sum_p1_p2" ## <----- FILE NAME (NAME OF THE MODEL) 51 51 def __init__(self): 52 Model1DPlugin.__init__(self, name= '')52 Model1DPlugin.__init__(self, name=self.name) 53 53 """ 54 54 :param p_model1: a form factor, P(Q) … … 59 59 ## Setting model name model description 60 60 self.description="" 61 self.name = self._get_name(p_model1.name, p_model2.name)61 62 62 self.description = p_model1.name+"\n" 63 63 self.description += p_model2.name+"\n" -
fittingview/src/sans/perspectives/fitting/plugin_models/testmodel.py
re9bd127 r19e614a 36 36 ## YOU CAN MODIFY THE LINE BELLOW. CHANGE ONLY WORDS BETWEEN " " 37 37 ## TO RENAME YOUR MODEL 38 name = " A+Bcos(2x)+Csin(2x)" ## <----- NAME OF THE MODEL38 name = "testmodel" ## <----- FILE NAME (NAME OF THE MODEL) 39 39 40 40 def __init__(self): -
fittingview/src/sans/perspectives/fitting/plugin_models/testmodel_2.py
r6f140f2 r19e614a 35 35 ## YOU CAN MODIFY THE LINE BELLOW. CHANGE ONLY WORDS BETWEEN " " 36 36 ## TO RENAME YOUR MODEL 37 name = " sin(poly)/(poly)" ## <----- NAME OF THE MODEL37 name = "testmodel_2" ## <----- FILE NAME (NAME OF THE MODEL) 38 38 39 39 def __init__(self): ##DO NOT CHANGE THIS LINE!!!
Note: See TracChangeset
for help on using the changeset viewer.