Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 71eafa04a9
Fetching contributors…

Cannot retrieve contributors at this time

executable file 42 lines (30 sloc) 0.93 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#!/usr/bin/python -u

"""Command-line runner for example experiments."""

# Copyright 2011, 2012 Matt Shannon

# This file is part of armspeech.
# See `License` for details of license and warranty.


from __future__ import division

import experiment

import sys
import tempfile
import traceback
import numpy as np
import armspeech.numpy_settings

import matplotlib
matplotlib.use('Agg')

# (FIXME : could change this to 'raise' if we extensively test all experiments
# to make sure they never fail incorrectly with this setting)
np.seterr(all = 'ignore')
np.set_printoptions(precision = 17, linewidth = 10000)

def main(rawArgs):
    outDir = tempfile.mkdtemp(dir = 'expt_hts_demo', prefix = 'out.')

    try:
        experiment.run(outDir)
    except:
        traceback.print_exc()
        print
        print '(to delete dir:)'
        print 'rm -r', outDir
        sys.exit(1)

if __name__ == '__main__':
    main(sys.argv)
Something went wrong with that request. Please try again.