Changeset 374
- Timestamp:
- 08/04/10 17:47:48 (6 years ago)
- Files:
-
- 4 added
- 1 deleted
- 4 edited
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r335 r374 7 7 doc: 8 8 cp -rf mystic/_math mystic/math 9 cp -f branches/dummy/__init__.py mystic/scripts 9 10 epydoc --config mystic.epydoc 10 11 rm -rf mystic/math 12 rm -f mystic/scripts/__init__.py 11 13 mkdir html 12 14 mv -f shared,mpi html/mystic-${VERSION} -
mystic/Make.mm
r243 r374 7 7 models \ 8 8 _math \ 9 scripts \ 9 10 10 11 OTHER_DIRS = \ -
mystic/scripts/mystic_log_reader.py
r372 r374 1 #!/usr/bin/env python 2 __doc__ = """ 3 plot parameter convergence from file written with 'LoggingSow' 4 5 Usage: python log_reader.py [filename] [maxiter] 6 [filename] - name of the convergence logfile (e.g log.txt) 7 [maxiter] - the largest iteration to plot (from 1 to maxiter) [optional] 8 """ 1 9 import sys 10 if '--help' in sys.argv: 11 print __doc__ 12 sys.exit(0) 13 2 14 if '--dots' in sys.argv: 3 15 mark = 'o' … … 6 18 mark = '' 7 19 8 try: 20 try: # get logfile name 9 21 filename = sys.argv[1] 10 22 except: 11 23 filename = 'log.txt' 24 25 try: # select which iteration to stop plotting at 26 stop = int(sys.argv[2]) 27 except: 28 stop = None 12 29 13 30 f = open(filename,"r") … … 44 61 cost.append(eval(values[1])) 45 62 param.append(eval(values[2])) 63 64 # ignore everything after 'stop' 65 step = step[:stop] 66 cost = cost[:stop] 67 param = param[:stop] 46 68 47 69 # split (i,id) into iteration and id -
mystic/setup.py
r335 r374 44 44 setup_code += """ 45 45 zip_safe=True, 46 scripts=[]) 46 """ 47 48 # add the scripts, and close 'setup' call 49 setup_code += """ 50 scripts=['scripts/mystic_log_reader.py', 51 'scripts/support_convergence.py', 52 'scripts/support_hypercube.py', 53 'scripts/support_hypercube2.py']) 47 54 """ 48 55 -
mystic/tests/Make.mm
r252 r374 5 5 PACKAGE = tests 6 6 7 PROJ_CLEAN += $(PROJ_CPPTESTS) log1.py log2.py 7 PROJ_CLEAN += $(PROJ_CPPTESTS) log1.py log2.py log.txt paramlog*.py 8 8 9 9 PROJ_PYTESTS =
Note: See TracChangeset
for help on using the changeset viewer.