Changeset d507c3a in sasmodels for sasmodels/models


Ignore:
Timestamp:
Feb 18, 2016 5:44:59 AM (8 years ago)
Author:
piotr
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c9f885e, cc3fac6
Parents:
7d4428c
Message:

Fixed deg→rad conversion

Location:
sasmodels/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/stacked_disks.c

    r66d119f rd507c3a  
    142142 
    143143    double ct, st, cp, sp; 
     144 
     145    //convert angle degree to radian 
     146    theta = theta * M_PI/180.0; 
     147    phi = phi * M_PI/180.0; 
     148 
    144149    SINCOS(theta, st, ct); 
    145150    SINCOS(phi, sp, cp); 
  • sasmodels/models/stacked_disks.py

    r66d119f rd507c3a  
    166166      'n_stacking': 1.0, 
    167167      'sigma_d': 0.0, 
    168       'core_sld':4.0, 
    169       'layer_sld':-0.4, 
    170       'solvent_sd':5.0, 
    171       'theta':0.0, 
    172       'phi':0.0, 
    173       'scale':0.01, 
    174       'background':0.001, 
     168      'core_sld': 4.0, 
     169      'layer_sld': -0.4, 
     170      'solvent_sd': 5.0, 
     171      'theta': 0.0, 
     172      'phi': 0.0, 
     173      'scale': 0.01, 
     174      'background': 0.001, 
    175175     }, 0.001, 5075.12], 
    176176 
     
    180180      'n_stacking': 1.0, 
    181181      'sigma_d': 0.0, 
    182       'core_sld':4.0, 
    183       'layer_sld':-0.4, 
    184       'solvent_sd':5.0, 
    185       'theta':0.0, 
    186       'phi':0.0, 
    187       'scale':0.01, 
    188       'background':0.001, 
     182      'core_sld': 4.0, 
     183      'layer_sld': -0.4, 
     184      'solvent_sd': 5.0, 
     185      'theta': 0.0, 
     186      'phi': 0.0, 
     187      'scale': 0.01, 
     188      'background': 0.001, 
    189189     }, [0.001, 90.0], [5075.12, 0.001]], 
    190190 
     
    194194      'n_stacking': 1.0, 
    195195      'sigma_d': 0.0, 
    196       'core_sld':4.0, 
    197       'layer_sld':-0.4, 
    198       'solvent_sd':5.0, 
    199       'theta':0.0, 
    200       'phi':0.0, 
    201       'scale':0.01, 
    202       'background':0.001, 
     196      'core_sld': 4.0, 
     197      'layer_sld': -0.4, 
     198      'solvent_sd': 5.0, 
     199      'theta': 0.0, 
     200      'phi': 0.0, 
     201      'scale': 0.01, 
     202      'background': 0.001, 
    203203     }, ([0.4, 0.5]), [0.00105074, 0.00121761]], 
    204204 
     
    208208      'n_stacking': 1.0, 
    209209      'sigma_d': 0.0, 
    210       'core_sld':4.0, 
    211       'layer_sld':-0.4, 
    212       'solvent_sd':5.0, 
    213       'theta':0.0, 
    214       'phi':0.0, 
    215       'scale':0.01, 
    216       'background':0.001, 
     210      'core_sld': 4.0, 
     211      'layer_sld': -0.4, 
     212      'solvent_sd': 5.0, 
     213      'theta': 0.0, 
     214      'phi': 0.0, 
     215      'scale': 0.01, 
     216      'background': 0.001, 
    217217     }, ([1.3, 1.57]), [0.0010039, 0.0010038]], 
    218218    ] 
Note: See TracChangeset for help on using the changeset viewer.