- Timestamp:
- 11/20/15 18:24:39 (6 months ago)
- Location:
- mystic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
mystic/examples_other/test_smo1.py
r839 r841 14 14 from numpy import * 15 15 import pylab 16 from mystic.svc toolsimport *16 from mystic.svc import * 17 17 18 18 # a common objective function for solving a QP problem -
mystic/mystic/scripts.py
r838 r841 384 384 dots = kwds.get('dots', False) 385 385 join = kwds.get('join', False) 386 verb = kwds.get('verb', False) 386 387 387 388 # special case: bounds passed as list of slices … … 424 425 cmdargs += '' if dots == False else '--dots ' 425 426 cmdargs += '' if join == False else '--join ' 427 cmdargs += '' if verb == False else '--verb ' 426 428 else: 427 429 cmdargs = ' ' + cmdargs … … 471 473 parser.add_option("-j","--join",action="store_true",dest="line",\ 472 474 default=False,help="connect trajectory points in plot") 475 parser.add_option("-v","--verb",action="store_true",dest="verbose",\ 476 default=False,help="print model documentation string") 473 477 474 478 # import sys … … 558 562 except: 559 563 stop = ":" 564 565 try: # select whether to be verbose about model documentation 566 verbose = bool(parsed_opts.verbose) 567 except: 568 verbose = False 560 569 561 570 ################################################# … … 584 593 if model: 585 594 model = _model or _get_instance(model) 595 if verbose: print model.__doc__ 586 596 # need a reducer if model returns an array 587 597 if reducer: model = reduced(reducer, arraylike=False)(model)
Note: See TracChangeset
for help on using the changeset viewer.