Ignore:
Timestamp:
11/21/14 14:33:33 (18 months ago)
Author:
mmckerns
Message:

fix: remove stray random.seed causing seeding of random number generation;
add random_state; convert rng to use random_state, seed to use random_seed;
seed faster run for examples/mpmap_desolve

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mystic/examples/example11.py

    r722 r772  
    3030from mystic.termination import CandidateRelativeTolerance as CRT 
    3131from mystic.monitors import VerboseMonitor, Monitor 
    32 from mystic.tools import getch, random_seed 
     32from mystic.tools import getch 
    3333from mystic.math import poly1d 
    3434import pylab 
     
    8686    # initial guess 
    8787    import random 
    88     random.seed(123) 
     88    from mystic.tools import random_seed 
     89    random_seed(123) 
    8990    ndim = 9 
    9091    x0 = [random.uniform(-5,5) + chebyshev8coeffs[i] for i in range(ndim)] 
Note: See TracChangeset for help on using the changeset viewer.