Changes in / [41c7e68:4b0e1f3] in sasmodels
- Files:
-
- 2 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/rst_prolog
re58bd7a re58bd7a 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 r41c7e68 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.