Skip to content

Commit 3d13c7e

Browse files
authored
Merge pull request #370 from PolicyEngine/nikhilwoodruff/issue369
Add default input and output periods to simulation constructors
2 parents 4a19010 + 386cee2 commit 3d13c7e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: minor
2+
changes:
3+
added:
4+
- Default input and output periods to Simulation constructor.

policyengine_core/simulations/simulation.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,15 @@ def __init__(
8989
dataset: Union[str, Type[Dataset]] = None,
9090
reform: Reform = None,
9191
trace: bool = False,
92+
default_input_period: str = None,
93+
default_calculation_period: str = None,
9294
):
95+
self.default_input_period = (
96+
default_input_period or self.default_input_period
97+
)
98+
self.default_calculation_period = (
99+
default_calculation_period or self.default_calculation_period
100+
)
93101
if tax_benefit_system is None:
94102
if (
95103
self.default_tax_benefit_system_instance is not None

0 commit comments

Comments
 (0)