def test_parameters_metadata_baseline():
    dd_standard = get_parameters(True,
                                 guid='',
                                 user_modifiable=True,
                                 metadata=False)
    dd_meta = get_parameters(True,
                             guid='',
                             user_modifiable=True,
                             metadata=True)
    for k, v in dd_meta.iteritems():
        assert dd_standard[k] == dd_meta[k]['value']
    assert set(dd_meta.keys()) == set(USER_MODIFIABLE_PARAMS)

    dd_standard = get_parameters(True,
                                 guid='',
                                 user_modifiable=True,
                                 metadata=False)
    dd_meta = get_parameters(True,
                             guid='',
                             user_modifiable=True,
                             metadata=True)
    for k, v in dd_meta.iteritems():
        assert dd_standard[k] == dd_meta[k]['value']

    assert set(dd_meta.keys()) == set(USER_MODIFIABLE_PARAMS)
    assert 'validations' in dd_meta['frisch']
Exemple #2
0
def test_parameters_metadata_baseline():
    dd_standard = get_parameters(True, guid='', user_modifiable=True, metadata=False)
    dd_meta = get_parameters(True, guid='', user_modifiable=True, metadata=True)
    for k, v in dd_meta.iteritems():
        assert dd_standard[k] == dd_meta[k]['value']
    assert set(dd_meta.keys()) == set(USER_MODIFIABLE_PARAMS)

    dd_standard = get_parameters(True, guid='', user_modifiable=True, metadata=False)
    dd_meta = get_parameters(True, guid='', user_modifiable=True, metadata=True)
    for k, v in dd_meta.iteritems():
        assert dd_standard[k] == dd_meta[k]['value']

    assert set(dd_meta.keys()) == set(USER_MODIFIABLE_PARAMS)
    assert 'validations' in dd_meta['frisch']
def test_parameters_user_modifiable():
    output_base = "./OUTPUT"
    dd = get_parameters(output_base,
                        test=False,
                        guid='',
                        user_modifiable=True,
                        metadata=False)
    assert set(dd.keys()) == set(USER_MODIFIABLE_PARAMS)
# import cPickle as pickle
import pickle
import xlsxwriter
from ogusa import parameters, labor, utils, inequal, demographics

baseline_dir = "./OUTPUT_BASELINE"
reform_dir = {}
reform_dir['wealth'] = "./OUTPUT_WEALTH_REFORM"
reform_dir['income'] = "./OUTPUT_INCOME_REFORM"
GRAPH_DIR = './Graphs'


'''
Get parameters
'''
run_params = parameters.get_parameters(baseline=True, reform={},
                      guid={}, user_modifiable=True)
run_params['analytical_mtrs'] = False
S = run_params['S']
E = run_params['E']
T = run_params['T']
starting_age = run_params['starting_age']
ending_age = run_params['ending_age']
J = run_params['J']
lambdas = run_params['lambdas']
l_tilde = run_params['ltilde']
theta = 1/run_params['frisch']
b_ellipse = run_params['b_ellipse']
upsilon = run_params['upsilon']
omega_SS = run_params['omega_SS']
e = run_params['e']
def test_parameters_user_modifiable():
    dd = get_parameters(False, guid='', user_modifiable=True, metadata=False)
    assert set(dd.keys()) == set(USER_MODIFIABLE_PARAMS)
    dd = get_parameters(False, guid='', user_modifiable=True, metadata=False)
    assert set(dd.keys()) == set(USER_MODIFIABLE_PARAMS)
Exemple #6
0
def test_parameters_user_modifiable():
    dd = get_parameters(False, guid='', user_modifiable=True, metadata=False)
    assert set(dd.keys()) == set(USER_MODIFIABLE_PARAMS)
    dd = get_parameters(False, guid='', user_modifiable=True, metadata=False)
    assert set(dd.keys()) == set(USER_MODIFIABLE_PARAMS)
Exemple #7
0
from scipy import stats
# import cPickle as pickle
import pickle
import xlsxwriter
from ogusa import parameters, labor, utils, inequal, demographics

baseline_dir = "./OUTPUT_BASELINE"
reform_dir = {}
reform_dir['wealth'] = "./OUTPUT_WEALTH_REFORM"
reform_dir['income'] = "./OUTPUT_INCOME_REFORM"
GRAPH_DIR = './Graphs'
'''
Get parameters
'''
run_params = parameters.get_parameters(baseline=True,
                                       reform={},
                                       guid={},
                                       user_modifiable=True)
run_params['analytical_mtrs'] = False
S = run_params['S']
E = run_params['E']
T = run_params['T']
starting_age = run_params['starting_age']
ending_age = run_params['ending_age']
J = run_params['J']
lambdas = run_params['lambdas']
l_tilde = run_params['ltilde']
theta = 1 / run_params['frisch']
b_ellipse = run_params['b_ellipse']
upsilon = run_params['upsilon']
omega_SS = run_params['omega_SS']
e = run_params['e']