Changeset ae2a197 in sasview for src/sas/models/c_extension
- Timestamp:
- Jul 26, 2015 6:28:43 PM (9 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:
- 225aca8
- Parents:
- fb3f9af (diff), e9e3e38 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/models/c_extension
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/models/c_extension/c_models/GelFit.cpp
r79492222 r1d115ef 34 34 radius = Parameter(104.0,true); 35 35 radius.set_min(2.0); 36 scale= Parameter(2.0,true);36 FractalExp = Parameter(2.0,true); 37 37 background = Parameter(0.01); 38 38 } … … 43 43 dp[0] = zeta(); 44 44 dp[1] = radius(); 45 dp[2] = scale();45 dp[2] = FractalExp(); 46 46 47 47 if (dp[2] <= 0) -
src/sas/models/c_extension/python_wrapper/WrapperGenerator.py
r13e46abe r1f5f206 560 560 def replaceToken(self, line, key, value): #pylint: disable-msg=R0201 561 561 """ Replace a token in the template file 562 @param line: line of text to inspect563 @param key: token to look for564 @param value: string value to replace the token with565 @return: new string value562 :param line: line of text to inspect 563 :param key: token to look for 564 :param value: string value to replace the token with 565 :return: new string value 566 566 """ 567 _str_value = str(value) 568 _new_value = _str_value.replace('\\','/') 567 569 lenkey = len(key) 568 570 newline = line … … 570 572 while newline.count(key) > 0: 571 573 index = newline.index(key) 572 newline = newline[:index] + value + newline[index + lenkey:]574 newline = newline[:index] + _new_value + newline[index + lenkey:] 573 575 574 576 return newline -
src/sas/models/c_extension/python_wrapper/modelTemplate.txt
rc93122e r1f5f206 17 17 18 18 .. WARNING:: 19 20 19 THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 21 20 DO NOT MODIFY THIS FILE, MODIFY … … 30 29 def create_[PYTHONCLASS](): 31 30 """ 32 31 Create a model instance 33 32 """ 34 33 obj = [PYTHONCLASS]() … … 100 99 """ 101 100 Evaluate the model 101 102 102 :param x: input q, or [q,phi] 103 103 :return: scattering function P(q) … … 108 108 """ 109 109 Evaluate the model in cartesian coordinates 110 110 111 :param x: input q, or [qx, qy] 111 112 :return: scattering function P(q) … … 116 117 """ 117 118 Evaluate the model in cartesian coordinates 119 118 120 :param x: input q[], or [qx[], qy[]] 119 121 :return: scattering function P(q[]) … … 124 126 """ 125 127 Calculate the effective radius for P(q)*S(q) 128 126 129 :return: the value of the effective radius 127 130 """ … … 131 134 """ 132 135 Calculate the volf ratio for P(q)*S(q) 136 133 137 :return: the value of the volf ratio 134 138 """ … … 138 142 """ 139 143 Set the dispersion object for a model parameter 144 140 145 :param parameter: name of the parameter [string] 141 146 :param dispersion: dispersion object of type DispersionModel
Note: See TracChangeset
for help on using the changeset viewer.