Changeset 2773c66 in sasmodels for sasmodels/product.py
- Timestamp:
- Sep 8, 2018 8:29:05 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- ba51e00
- Parents:
- b763f9d (diff), c88f983 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/product.py
r33d7be3 r2773c66 42 42 pars = [] 43 43 if p_info.have_Fq: 44 par = parse_parameter("structure_factor_mode", "", 0, [["P*S","P*(1+beta*(S-1))"]], "", 45 "Structure factor calculation") 44 par = parse_parameter( 45 "structure_factor_mode", 46 "", 47 0, 48 [["P*S","P*(1+beta*(S-1))"]], 49 "", 50 "Structure factor calculation") 46 51 pars.append(par) 47 52 if p_info.effective_radius_type is not None: 48 par = parse_parameter("radius_effective_mode", "", 0, [["unconstrained"] + p_info.effective_radius_type], "", 49 "Effective radius calculation") 53 par = parse_parameter( 54 "radius_effective_mode", 55 "", 56 0, 57 [["unconstrained"] + p_info.effective_radius_type], 58 "", 59 "Effective radius calculation") 50 60 pars.append(par) 51 61 return pars … … 169 179 )) 170 180 171 def _intermediates_beta(F1, F2, S, scale, bg, effective_radius): 172 # type: (np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray, float) -> OrderedDict[str, Union[np.ndarray, float]] 181 def _intermediates_beta(F1, # type: np.ndarray 182 F2, # type: np.ndarray 183 S, # type: np.ndarray 184 scale, # type: np.ndarray 185 bg, # type: np.ndarray 186 effective_radius # type: float 187 ): 188 # type: (...) -> OrderedDict[str, Union[np.ndarray, float]] 173 189 """ 174 190 Returns intermediate results for beta approximation-enabled product. The result may be an array or a float.
Note: See TracChangeset
for help on using the changeset viewer.