diff --git a/dist/cadCAD-0.2.1-py3-none-any.whl b/dist/cadCAD-0.2.1-py3-none-any.whl index 354aaec..cf618e8 100644 Binary files a/dist/cadCAD-0.2.1-py3-none-any.whl and b/dist/cadCAD-0.2.1-py3-none-any.whl differ diff --git a/simulations/validation/config1.py b/simulations/validation/config1.py index d2a8f2b..1a98822 100644 --- a/simulations/validation/config1.py +++ b/simulations/validation/config1.py @@ -79,8 +79,8 @@ def es4p2(_g, step, sL, s, _input): ts_format = '%Y-%m-%d %H:%M:%S' t_delta = timedelta(days=0, minutes=0, seconds=1) def es5p2(_g, step, sL, s, _input): - y = 'timestep' - x = ep_time_step(s, dt_str=s['timestep'], fromat_str=ts_format, _timedelta=t_delta) + y = 'timestamp' + x = ep_time_step(s, dt_str=s['timestamp'], fromat_str=ts_format, _timedelta=t_delta) return (y, x) @@ -99,14 +99,14 @@ genesis_states = { 's2': Decimal(0.0), 's3': Decimal(1.0), 's4': Decimal(1.0), -# 'timestep': '2018-10-01 15:16:24' + 'timestamp': '2018-10-01 15:16:24' } raw_exogenous_states = { "s3": es3p1, "s4": es4p2, -# "timestep": es5p2 + "timestamp": es5p2 } diff --git a/simulations/validation/config2.py b/simulations/validation/config2.py index 80adcb5..ebba912 100644 --- a/simulations/validation/config2.py +++ b/simulations/validation/config2.py @@ -77,8 +77,8 @@ def es4p2(_g, step, sL, s, _input): ts_format = '%Y-%m-%d %H:%M:%S' t_delta = timedelta(days=0, minutes=0, seconds=1) def es5p2(_g, step, sL, s, _input): - y = 'timestep' - x = ep_time_step(s, dt_str=s['timestep'], fromat_str=ts_format, _timedelta=t_delta) + y = 'timestamp' + x = ep_time_step(s, dt_str=s['timestamp'], fromat_str=ts_format, _timedelta=t_delta) return (y, x) @@ -97,14 +97,14 @@ genesis_states = { 's2': Decimal(0.0), 's3': Decimal(1.0), 's4': Decimal(1.0), -# 'timestep': '2018-10-01 15:16:24' + 'timestamp': '2018-10-01 15:16:24' } raw_exogenous_states = { "s3": es3p1, "s4": es4p2, -# "timestep": es5p2 + "timestamp": es5p2 } diff --git a/simulations/validation/sweep_config.py b/simulations/validation/sweep_config.py index e014b94..04f5698 100644 --- a/simulations/validation/sweep_config.py +++ b/simulations/validation/sweep_config.py @@ -94,15 +94,12 @@ def es4p2(_g, step, sL, s, _input): ts_format = '%Y-%m-%d %H:%M:%S' t_delta = timedelta(days=0, minutes=0, seconds=1) def es5p2(_g, step, sL, s, _input): - y = 'timestep' - x = ep_time_step(s, dt_str=s['timestep'], fromat_str=ts_format, _timedelta=t_delta) + y = 'timestamp' + x = ep_time_step(s, dt_str=s['timestamp'], fromat_str=ts_format, _timedelta=t_delta) return (y, x) # Environment States -# @curried -# def env_a(param, x): -# return x + param def env_a(x): return x def env_b(x): @@ -115,7 +112,7 @@ genesis_states = { 's2': Decimal(0.0), 's3': Decimal(1.0), 's4': Decimal(1.0), -# 'timestep': '2018-10-01 15:16:24' + 'timestamp': '2018-10-01 15:16:24' } @@ -123,26 +120,14 @@ genesis_states = { raw_exogenous_states = { "s3": es3p1, "s4": es4p2, -# "timestep": es5p2 + 'timestamp': es5p2 } - -# ToDo: make env proc trigger field agnostic -# ToDo: input json into function renaming __name__ triggered_env_b = proc_trigger(1, env_b) env_processes = { - "s3": env_a, #sweep(beta, env_a), - "s4": triggered_env_b #rename('parameterized', triggered_env_b) #sweep(beta, triggered_env_b) + "s3": env_a, + "s4": triggered_env_b } -# parameterized_env_processes = parameterize_states(env_processes) -# -# pp.pprint(parameterized_env_processes) -# exit() - -# ToDo: The number of values entered in sweep should be the # of config objs created, -# not dependent on the # of times the sweep is applied -# sweep exo_state func and point to exo-state in every other funtion -# param sweep on genesis states partial_state_update_block = { "m1": {