Skip to content

Commit

Permalink
v0.4.27: resolving merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
JEJodesty committed Aug 26, 2021
2 parents 44661cf + 7feecf8 commit 37880a0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 18 deletions.
8 changes: 4 additions & 4 deletions documentation/System_Model_Parameter_Sweep.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ params = {
'omega': [7]
}
```
The parameters above produce 2 simulations.
* Simulation 1:
The parameters above produce 2 Runs per Simulation.
* Run 1:
* `alpha = 1`
* `beta = 2`
* `gamma = 3`
* `omega = 7`
* Simulation 2:
* Run 2:
* `alpha = 1`
* `beta = 5`
* `gamma = 4`
Expand Down Expand Up @@ -70,4 +70,4 @@ sim_config = config_sim(
)
```
#### Example
##### * [System Model Configuration](examples/param_sweep.py)
##### * [System Model Configuration](examples/param_sweep.py)
5 changes: 2 additions & 3 deletions simulations/regression_tests/execs/config1_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
local_proc_ctx = ExecutionContext(context=exec_mode.local_mode)
run = Executor(exec_context=local_proc_ctx, configs=config1.exp.configs)

raw_result, tensor_fields, sessions = run.execute()
raw_result, tensor_fields, _ = run.execute()
result = pd.DataFrame(raw_result)
print(tabulate(tensor_fields[0], headers='keys', tablefmt='psql'))
pprint(sessions)
print(tabulate(result, headers='keys', tablefmt='psql'))
print(tabulate(result, headers='keys', tablefmt='psql'))
5 changes: 2 additions & 3 deletions simulations/regression_tests/execs/config2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
local_proc_ctx = ExecutionContext(context=exec_mode.local_mode)
run = Executor(exec_context=local_proc_ctx, configs=config2.exp.configs)

raw_result, tensor_fields, sessions = run.execute()
raw_result, tensor_fields, _ = run.execute()
result = pd.DataFrame(raw_result)
print(tabulate(tensor_fields[0], headers='keys', tablefmt='psql'))
pprint(sessions)
print(tabulate(result, headers='keys', tablefmt='psql'))
print(tabulate(result, headers='keys', tablefmt='psql'))
3 changes: 1 addition & 2 deletions simulations/regression_tests/execs/multi_config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
local_proc_ctx = ExecutionContext(context=exec_mode.local_mode)
run = Executor(exec_context=local_proc_ctx, configs=multi_exp.configs)

raw_result, tensor_fields, sessions = run.execute()
raw_result, tensor_fields, _ = run.execute()
result = pd.DataFrame(raw_result)
print(tabulate(tensor_fields[0], headers='keys', tablefmt='psql'))
# pprint(sessions)
print(tabulate(result, headers='keys', tablefmt='psql'))
3 changes: 1 addition & 2 deletions simulations/regression_tests/execs/multi_config_test2.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
local_proc_ctx = ExecutionContext(context=exec_mode.local_mode)
run = Executor(exec_context=local_proc_ctx, configs=multi_exp.configs)

raw_result, tensor_fields, sessions = run.execute()
raw_result, tensor_fields, _ = run.execute()
result = pd.DataFrame(raw_result)
print(tabulate(tensor_fields[0], headers='keys', tablefmt='psql'))
# pprint(sessions)
print(tabulate(result, headers='keys', tablefmt='psql'))
3 changes: 1 addition & 2 deletions simulations/regression_tests/execs/param_sweep_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
local_proc_ctx = ExecutionContext(context=exec_mode.local_mode)
run = Executor(exec_context=local_proc_ctx, configs=sweep_config.exp.configs)

raw_result, tensor_fields, sessions = run.execute()
raw_result, tensor_fields, _ = run.execute()
result = pd.DataFrame(raw_result)
print(tabulate(tensor_fields[0], headers='keys', tablefmt='psql'))
# pprint(sessions)
print(tabulate(result, headers='keys', tablefmt='psql'))
3 changes: 1 addition & 2 deletions simulations/regression_tests/execs/policy_agg_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
local_proc_ctx = ExecutionContext(context=exec_mode.local_mode)
run = Executor(exec_context=local_proc_ctx, configs=policy_aggregation.exp.configs)

raw_result, tensor_fields, sessions = run.execute()
raw_result, tensor_fields, _ = run.execute()
result = pd.DataFrame(raw_result)
print(tabulate(tensor_fields[0], headers='keys', tablefmt='psql'))
pprint(sessions)
print(tabulate(result, headers='keys', tablefmt='psql'))

0 comments on commit 37880a0

Please sign in to comment.