Changes in / [e166cb9:57cb76d] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
r3271e20 rff58110 757 757 print "time:",toc() 758 758 759 def demo(): 760 from .models import cylinder 761 source, info = make(cylinder) 762 #print doc(cylinder) 763 print source 759 def 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) 764 769 765 770 if __name__ == "__main__": 766 demo()771 main()
Note: See TracChangeset
for help on using the changeset viewer.