Changes in / [41c7e68:4b0e1f3] in sasmodels


Ignore:
Files:
2 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • doc/rst_prolog

    re58bd7a re58bd7a  
    5050.. |cm^-2| replace:: cm\ :sup:`-2` 
    5151.. |cm^3| replace:: cm\ :sup:`3` 
     52.. |1e15cm^3| replace:: 10\ :sup:`15`\ cm\ :sup:`3` 
    5253.. |cm^-3| replace:: cm\ :sup:`-3` 
    5354.. |sr^-1| replace:: sr\ :sup:`-1` 
  • sasmodels/convert.py

    r7d4b2ae r0d0aee1  
    5252    new model definition end with sld. 
    5353    """ 
    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)) 
    5555                for p, v in pars.items()) 
    5656 
     
    7070    new model definition end with sld. 
    7171    """ 
    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)) 
    7373                for p, v in pars.items()) 
    7474 
  • sasmodels/models/adsorbed_layer.py

    r41c7e68 r41c7e68  
    6161    denominator =  (q * q) * (density_poly * density_poly) * radius 
    6262    eterm =  exp(-1.0 * (q * q) * (second_moment * second_moment)) 
    63     inten =  deltarhosqrd * ((numerator / denominator) * eterm) 
    6463    #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 
    6666Iq.vectorized =  True  # Iq accepts an array of q values 
    6767 
Note: See TracChangeset for help on using the changeset viewer.