Changes in / [b15849c:bea7acb] in sasmodels


Ignore:
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • doc/rst_prolog

    r0a4628d r0d0aee1  
    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/generate.py

    rc437dbb r0d0aee1  
    242242    "1/Ang^2": "|Ang^-2|", 
    243243    "1e-6/Ang^2": "|1e-6Ang^-2|", 
     244    "1e15/cm^3": "|1e15cm^3|", 
    244245    "degrees": "degree", 
    245246    "1/cm": "|cm^-1|", 
     247    "1/cm^3": "|cm^-3|", 
    246248    "Ang/cm": "|Ang*cm^-1|", 
     249    "Ang^3": "|Ang^3|", 
    247250    "": "None", 
    248251    } 
Note: See TracChangeset for help on using the changeset viewer.