Changeset 707
- Timestamp:
- 10/24/13 20:10:40 (3 years ago)
- Location:
- mystic
- Files:
-
- 1 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
mystic/examples/README
r137 r707 12 12 - The following examples also require scipy to be installed. (tested on version 0.4.8 and 0.7.0): 13 13 . cg_rosenbrock.py 14 . test_br8.py15 14 . test_lorentzian.py 16 15 . test_mogi.py -
mystic/examples_other/test_br8.py
r625 r707 21 21 22 22 def 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() 27 32 28 33 def plot_sol(solver=None, linestyle='k-'): … … 122 127 # 2D (a fine mesh solution can be computed by test_br8_mpi.py) 123 128 try: 124 import scipy.io,pylab125 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')) 128 133 pylab.clf() 129 134 pylab.plot([[a4]],[[a5]],'k+')
Note: See TracChangeset
for help on using the changeset viewer.