You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
country: CountryType=Field(..., description="The country to simulate.")
53
-
scope: ScopeType=Field(..., description="The scope of the simulation.")
54
-
data: DataType=Field(None, description="The data to simulate.")
55
-
time_period: TimePeriodType=Field(
56
-
2025, description="The time period to simulate."
57
-
)
58
-
reform: ReformType=Field(None, description="The reform to simulate.")
59
-
baseline: ReformType=Field(None, description="The baseline to simulate.")
60
-
region: RegionType=Field(
61
-
None, description="The region to simulate within the country."
62
-
)
63
-
subsample: SubsampleType=Field(
64
-
None,
65
-
description="How many, if a subsample, households to randomly simulate.",
66
-
)
67
-
title: Optional[str] =Field(
68
-
"[Analysis title]",
69
-
description="The title of the analysis (for charts). If not provided, a default title will be generated.",
70
-
)
71
-
include_cliffs: Optional[bool] =Field(
72
-
False,
73
-
description="Whether to include tax-benefit cliffs in the simulation analyses. If True, cliffs will be included.",
74
-
)
75
-
model_version: Optional[str] =Field(
76
-
None,
77
-
description="The version of the country model used in the simulation. If not provided, the current package version will be used. If provided, this package will throw an error if the package version does not match. Use this as an extra safety check.",
78
-
)
79
-
data_version: Optional[str] =Field(
80
-
None,
81
-
description="The version of the data used in the simulation. If not provided, the current data version will be used. If provided, this package will throw an error if the data version does not match. Use this as an extra safety check.",
82
-
)
83
-
84
-
model_config= {
85
-
"arbitrary_types_allowed": True,
86
-
}
87
-
88
57
89
58
classSimulation:
90
59
"""Simulate tax-benefit policy and derive society-level output statistics."""
@@ -98,9 +67,10 @@ class Simulation:
98
67
data_version: Optional[str] =None
99
68
"""The version of the data used in the simulation."""
country: CountryType=Field(..., description="The country to simulate.")
22
+
scope: ScopeType=Field(..., description="The scope of the simulation.")
23
+
data: DataType=Field(None, description="The data to simulate.")
24
+
time_period: TimePeriodType=Field(
25
+
2025, description="The time period to simulate."
26
+
)
27
+
reform: ReformType=Field(None, description="The reform to simulate.")
28
+
baseline: ReformType=Field(None, description="The baseline to simulate.")
29
+
region: RegionType=Field(
30
+
None, description="The region to simulate within the country."
31
+
)
32
+
subsample: SubsampleType=Field(
33
+
None,
34
+
description="How many, if a subsample, households to randomly simulate.",
35
+
)
36
+
title: Optional[str] =Field(
37
+
"[Analysis title]",
38
+
description="The title of the analysis (for charts). If not provided, a default title will be generated.",
39
+
)
40
+
include_cliffs: Optional[bool] =Field(
41
+
False,
42
+
description="Whether to include tax-benefit cliffs in the simulation analyses. If True, cliffs will be included.",
43
+
)
44
+
model_version: Optional[str] =Field(
45
+
None,
46
+
description="The version of the country model used in the simulation. If not provided, the current package version will be used. If provided, this package will throw an error if the package version does not match. Use this as an extra safety check.",
47
+
)
48
+
data_version: Optional[str] =Field(
49
+
None,
50
+
description="The version of the data used in the simulation. If not provided, the current data version will be used. If provided, this package will throw an error if the data version does not match. Use this as an extra safety check.",
0 commit comments