Changeset b297ba9 in sasmodels for sasmodels/models/guinier.py
- Timestamp:
- Mar 20, 2019 7:03:50 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:
- 4e28511
- Parents:
- 0d362b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/guinier.py
rc9fc873 rb297ba9 38 38 39 39 To specify a negative value of $R_g^2$ in SasView, simply give $R_g$ a negative 40 value ($R_g^2$ will be evaluated as $R_g |R_g|$). Note that the physical radius 41 of gyration, of the exterior of the particle, will still be large and positive. 42 It is only the apparent size from the small $Q$ data that will give a small or 40 value ($R_g^2$ will be evaluated as $R_g |R_g|$). Note that the physical radius 41 of gyration, of the exterior of the particle, will still be large and positive. 42 It is only the apparent size from the small $Q$ data that will give a small or 43 43 negative value of $R_g^2$. 44 44 … … 74 74 75 75 def random(): 76 """Return a random parameter set for the model.""" 76 77 scale = 10**np.random.uniform(1, 4) 77 78 # Note: compare.py has Rg cutoff of 1e-30 at q=1 for guinier, so use that … … 89 90 90 91 # parameters for demo 91 demo = dict(scale=1.0, background=0.001, rg=60.0)92 demo = dict(scale=1.0, background=0.001, rg=60.0) 92 93 93 94 # parameters for unit tests
Note: See TracChangeset
for help on using the changeset viewer.