core.py 60.2 KB
Newer Older
Sebastian Heimann's avatar
Sebastian Heimann committed
2001
2002
2003
2004
        elif what == 'ensemble':
            gms = problem.global_misfits(misfits)
            isort = num.argsort(gms)
            for i in isort:
2005
                dump(xs[i], gms[i], indices)
Sebastian Heimann's avatar
Sebastian Heimann committed
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015

        elif what == 'stats':
            rs = make_stats(problem, xs, misfits, pnames_clean)
            if shortform:
                print >>out, ' ', format_stats(rs, pnames)
            else:
                print >>out, rs

        else:
            raise GrondError('invalid argument: what=%s' % repr(what))
Sebastian Heimann's avatar
Sebastian Heimann committed
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035

    if out is not sys.stdout:
        out.close()


__all__ = '''
    GrondError
    Parameter
    ADict
    Path
    Problem
    ProblemConfig
    MisfitTarget
    MisfitResult
    Forbidden
    InnerMisfitConfig
    DatasetConfig
    TargetConfig
    SamplerDistributionChoice
    SolverConfig
Sebastian Heimann's avatar
Sebastian Heimann committed
2036
    EngineConfig
Sebastian Heimann's avatar
Sebastian Heimann committed
2037
2038
2039
2040
2041
2042
2043
2044
    Config
    HasPaths
    TargetAnalysisResult
    load_problem_info_and_data
    read_config
    forward
    harvest
    go
Sebastian Heimann's avatar
Sebastian Heimann committed
2045
    get_event_names
Sebastian Heimann's avatar
Sebastian Heimann committed
2046
    check
Sebastian Heimann's avatar
Sebastian Heimann committed
2047
2048
    export
'''.split()