Changeset 790
- Timestamp:
- 06/04/15 09:15:26 (12 months ago)
- Location:
- mystic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
mystic/mystic/ensemble.py
r785 r790 141 141 vb = [verbose for i in range(len(initial_values))] 142 142 cb = [echo for i in range(len(initial_values))] #XXX: remove? 143 id = range(len(initial_values)) 143 at = self.id if self.id else 0 # start at self.id 144 id = range(at,at+len(initial_values)) 144 145 145 146 # generate the local_optimize function … … 327 328 vb = [verbose for i in range(len(initial_values))] 328 329 cb = [echo for i in range(len(initial_values))] #XXX: remove? 329 id = range(len(initial_values)) 330 at = self.id if self.id else 0 # start at self.id 331 id = range(at,at+len(initial_values)) 330 332 331 333 # generate the local_optimize function -
mystic/scripts/mystic_model_plotter.py
r776 r790 355 355 help="id # of the nth simultaneous points to plot") 356 356 parser.add_option("-i","--iter",action="store",dest="stop",\ 357 metavar=" INT",default=None,358 help=" the largest iterationto plot")357 metavar="STR",default=":", 358 help="string for smallest:largest iterations to plot") 359 359 parser.add_option("-r","--reduce",action="store",dest="reducer",\ 360 360 metavar="STR",default="None", … … 442 442 443 443 try: # select which iteration to stop plotting at 444 stop = int(parsed_opts.stop) 445 except: 446 stop = None 444 stop = parsed_opts.stop # format is "1:10:1" 445 stop = stop if ":" in stop else ":"+stop 446 except: 447 stop = ":" 447 448 448 449 ################################################# … … 520 521 #px = p[int(s)] # draw_projection requires one parameter 521 522 ## ignore everything after 'stop' 522 #_c = c[:stop]523 #_x = px[:stop]523 #_c = eval('c[%s]' % stop) 524 #_x = eval('px[%s]' % stop) 524 525 #fig0 = draw_projection(_x,_c, style=style, scale=scale, shift=shift, figure=fig0) 525 526 … … 529 530 px,py = p # draw_trajectory requires two parameters 530 531 # ignore everything after 'stop' 531 _x = px[:stop]532 _y = py[:stop]533 _c = c[:stop]if surface else None532 _x = eval('px[%s]' % stop) 533 _y = eval('py[%s]' % stop) 534 _c = eval('c[%s]' % stop) if surface else None 534 535 fig = draw_trajectory(_x,_y,_c, style=style, scale=scale, shift=shift, figure=fig) 535 536
Note: See TracChangeset
for help on using the changeset viewer.