Changeset 707


Ignore:
Timestamp:
10/24/13 20:10:40 (3 years ago)
Author:
mmckerns
Message:

retired test_br8 to examples_other

Location:
mystic
Files:
1 edited
4 moved

Legend:

Unmodified
Added
Removed
  • mystic/examples/README

    r137 r707  
    1212 - The following examples also require scipy to be installed. (tested on version 0.4.8 and 0.7.0): 
    1313    . cg_rosenbrock.py 
    14     . test_br8.py 
    1514    . test_lorentzian.py 
    1615    . test_mogi.py 
  • mystic/examples_other/test_br8.py

    r625 r707  
    2121 
    2222def myshow(): 
    23     import pylab, Image 
    24     pylab.savefig('test_br8_out',dpi=72) 
    25     im = Image.open('test_br8_out.png') 
    26     im.show() 
     23    import pylab 
     24    try: 
     25        import Image 
     26        pylab.savefig('test_br8_out',dpi=72) 
     27        im = Image.open('test_br8_out.png') 
     28        im.show() 
     29    except ImportError: 
     30        pass 
     31    pylab.show() 
    2732     
    2833def plot_sol(solver=None, linestyle='k-'): 
     
    122127    # 2D (a fine mesh solution can be computed by test_br8_mpi.py) 
    123128    try: 
    124         import scipy.io, pylab 
    125         X = scipy.io.read_array(open('test_br8_mpi.out.X')) 
    126         Y = scipy.io.read_array(open('test_br8_mpi.out.Y')) 
    127         V = scipy.io.read_array(open('test_br8_mpi.out.V')) 
     129        import pylab 
     130        X = loadtxt.read_array(open('test_br8_mpi.out.X')) 
     131        Y = loadtxt.read_array(open('test_br8_mpi.out.Y')) 
     132        V = loadtxt.read_array(open('test_br8_mpi.out.V')) 
    128133        pylab.clf() 
    129134        pylab.plot([[a4]],[[a5]],'k+') 
Note: See TracChangeset for help on using the changeset viewer.