Changeset 4b0e1f3 in sasmodels
- Timestamp:
- Mar 14, 2016 6:34:58 AM (9 years ago)
- 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:
- 56fac50
- Parents:
- 41c7e68 (diff), bea7acb (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. - Files:
-
- 3 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/rst_prolog
re58bd7a r4b0e1f3 50 50 .. |cm^-2| replace:: cm\ :sup:`-2` 51 51 .. |cm^3| replace:: cm\ :sup:`3` 52 .. |1e15cm^3| replace:: 10\ :sup:`15`\ cm\ :sup:`3` 52 53 .. |cm^-3| replace:: cm\ :sup:`-3` 53 54 .. |sr^-1| replace:: sr\ :sup:`-1` -
sasmodels/convert.py
r7d4b2ae r0d0aee1 52 52 new model definition end with sld. 53 53 """ 54 return dict((p, (v*1e6 if p.endswith('sld') else v ))54 return dict((p, (v*1e6 if p.endswith('sld') else v*1e-15 if 'ndensity' in p else v)) 55 55 for p, v in pars.items()) 56 56 … … 70 70 new model definition end with sld. 71 71 """ 72 return dict((p, (v*1e-6 if p.endswith('sld') else v ))72 return dict((p, (v*1e-6 if p.endswith('sld') else v*1e15 if 'ndensity' in p else v)) 73 73 for p, v in pars.items()) 74 74 -
sasmodels/models/adsorbed_layer.py
r41c7e68 r4b0e1f3 61 61 denominator = (q * q) * (density_poly * density_poly) * radius 62 62 eterm = exp(-1.0 * (q * q) * (second_moment * second_moment)) 63 inten = deltarhosqrd * ((numerator / denominator) * eterm)64 63 #scale by 10^10 for units conversion to cm^-1 65 return inten * 1.0e+10 64 inten = 1.0e+10 * deltarhosqrd * ((numerator / denominator) * eterm) 65 return inten * 9.4e-13 66 66 Iq.vectorized = True # Iq accepts an array of q values 67 67
Note: See TracChangeset
for help on using the changeset viewer.