Skip to content

Commit 3fd3605

Browse files
committed
Config update
1 parent 0e7f9b7 commit 3fd3605

File tree

4 files changed

+76
-2
lines changed

4 files changed

+76
-2
lines changed

simulation/config/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from .state import state_base
2-
from .params import params_base
1+
from .state import state_base, state_test1
2+
from .params import params_base, params_test1, params_test2
33
from .experiment import experiments_map

simulation/config/params.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
from copy import deepcopy
2+
13
params_base = {
24
"DUMMY D Probability": 0.5,
35
"DUMMY Length Multiplier": 3,
46
"FP DUMMY Length-1 DEF Control Action": "DUMMY Length-1 DEF Equal Weight Option",
57
"FP DUMMY Length-2 ABC Combo Boundary Action": "DUMMY Length-2 ABC Equal Weight Option",
68
}
9+
10+
params_test1 = deepcopy(params_base)
11+
params_test1["DUMMY D Probability"] = 1
12+
13+
params_test2 = deepcopy(params_base)
14+
params_test2["DUMMY D Probability"] = 0

simulation/config/state.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
from copy import deepcopy
2+
13
state_base = {
24
"Dummy": {"Words": "", "Total Length": None},
35
"Time": 0,
46
"Simulation Log": [],
57
}
8+
9+
state_test1 = deepcopy(state_base)
10+
state_test1["Time"] = 100

tests/DUMMY Economic Test.ipynb

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {},
7+
"outputs": [
8+
{
9+
"ename": "AssertionError",
10+
"evalue": "Bring in a test state and test parameter set",
11+
"output_type": "error",
12+
"traceback": [
13+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
14+
"\u001b[0;31mAssertionError\u001b[0m Traceback (most recent call last)",
15+
"Cell \u001b[0;32mIn[1], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01massert\u001b[39;00m \u001b[38;5;28;01mFalse\u001b[39;00m, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mBring in a test state and test parameter set\u001b[39m\u001b[38;5;124m\"\u001b[39m\n",
16+
"\u001b[0;31mAssertionError\u001b[0m: Bring in a test state and test parameter set"
17+
]
18+
}
19+
],
20+
"source": [
21+
"assert False, \"Bring in a test state and test parameter set that has 100% D and 0% D\"\n",
22+
"assert False, \"Also start time at T=100 and make sure time is appropriately updated\""
23+
]
24+
},
25+
{
26+
"cell_type": "code",
27+
"execution_count": null,
28+
"metadata": {},
29+
"outputs": [],
30+
"source": []
31+
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": null,
35+
"metadata": {},
36+
"outputs": [],
37+
"source": []
38+
}
39+
],
40+
"metadata": {
41+
"kernelspec": {
42+
"display_name": "Aztec",
43+
"language": "python",
44+
"name": "python3"
45+
},
46+
"language_info": {
47+
"codemirror_mode": {
48+
"name": "ipython",
49+
"version": 3
50+
},
51+
"file_extension": ".py",
52+
"mimetype": "text/x-python",
53+
"name": "python",
54+
"nbconvert_exporter": "python",
55+
"pygments_lexer": "ipython3",
56+
"version": "3.11.8"
57+
}
58+
},
59+
"nbformat": 4,
60+
"nbformat_minor": 2
61+
}

0 commit comments

Comments
 (0)