Changeset 57cb76d in sasmodels


Ignore:
Timestamp:
Feb 19, 2015 6:05:01 AM (10 years ago)
Author:
ajj
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:
3a45c2c, e7b3d7b
Parents:
e166cb9 (diff), ff58110 (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.
Message:

Merge branch 'master' of https://github.com/SasView/sasmodels

Location:
sasmodels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r3271e20 rff58110  
    757757    print "time:",toc() 
    758758 
    759 def demo(): 
    760     from .models import cylinder 
    761     source, info = make(cylinder) 
    762     #print doc(cylinder) 
    763     print source 
     759def main(): 
     760    if len(sys.argv) <= 1: 
     761        print "usage: python -m sasmodels.generate modelname" 
     762    else: 
     763        name = sys.argv[1] 
     764        import sasmodels.models 
     765        __import__('sasmodels.models.'+name) 
     766        model = getattr(sasmodels.models, name) 
     767        source, info = make(model); print source 
     768        #print doc(model) 
    764769 
    765770if __name__ == "__main__": 
    766     demo() 
     771    main() 
  • sasmodels/models/bcc.py

    rc95dc908 re166cb9  
    8080from numpy import pi, inf 
    8181 
    82 name = "BCCparacrystal" 
     82name = "bcc_paracrystal" 
    8383title = "Body-centred cubic lattic with paracrystalline distortion" 
    8484description = """ 
Note: See TracChangeset for help on using the changeset viewer.