Changeset 23df833 in sasmodels for sasmodels/direct_model.py
- Timestamp:
- Oct 30, 2018 4:19:38 PM (5 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 5024a56
- Parents:
- aa8c6e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/direct_model.py
r304c775 r23df833 67 67 # type: (Kernel, ParameterSet, float, bool) -> np.ndarray 68 68 """ 69 Like :func:`call_kernel`, but returning F, F^2, R_eff, V, V_form/V_shell. 69 Like :func:`call_kernel`, but returning F, F^2, R_eff, V_shell, V_form/V_shell. 70 71 For solid objects V_shell is equal to V_form and the volume ratio is 1. 70 72 """ 71 73 R_eff_type = int(pars.pop('radius_effective_type', 1.0)) … … 76 78 return calculator.Fq(call_details, values, cutoff, is_magnetic, R_eff_type) 77 79 78 def call_profile(model_info, **pars):79 # type: (ModelInfo, ...) -> Tuple[np.ndarray, np.ndarray, Tuple[str, str]]80 def call_profile(model_info, pars=None): 81 # type: (ModelInfo, ParameterSet) -> Tuple[np.ndarray, np.ndarray, Tuple[str, str]] 80 82 """ 81 83 Returns the profile *x, y, (xlabel, ylabel)* representing the model. 82 84 """ 85 if pars is None: 86 pars = {} 83 87 args = {} 84 88 for p in model_info.parameters.kernel_parameters: … … 377 381 Generate a plottable profile. 378 382 """ 379 return call_profile(self.model.info, **pars)383 return call_profile(self.model.info, pars) 380 384 381 385 def main():
Note: See TracChangeset
for help on using the changeset viewer.